To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / deploy / config / cron.monthly @ 1587:d8949733849d

1 1586:d0d59d12db94 Chris
#!/bin/sh
2
for location in var/www etc/apache2 etc/cron.*; do
3
	target="/var/files/backups/`echo $location | sed 's,/,_,g'`-`date +%Y%m%d%H%M`"
4
	oldmask=`umask`
5
	umask 0277
6
	cd /
7
	tar cjf "$target".tar.bz2 "$location"
8
	umask "$oldmask"
9
done