Commit 7fc1461a authored by root's avatar root
Browse files

antea: Update backup target dir.

parent 77e9940e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
set -x

FREQ=$1; shift
POSTGRES=/backup-thecus/postgres
BACKUP=/backup
POSTGRES=/root/backup/postgres
BACKUP=/root/backup

if [[ "$FREQ" = "daily" ]]; then
    mkdir -p $POSTGRES
@@ -21,4 +21,4 @@ if [[ "$FREQ" = "daily" ]]; then
fi

set +x
{ df -h /backup*; echo; cd /backup; for i in daily.{0..13} weekly.{0..7}; do printf "$i: "; cat $i/timestamp; done; } |& mail -s "backup - antea - $R" xstill@fi.muni.cz
{ df -h /backup* /root/backup*; echo; cd $BACKUP; for i in daily.{0..13} weekly.{0..7}; do printf "$i: "; cat $i/timestamp; done; } |& mail -s "backup - antea - $R" xstill@fi.muni.cz
+3 −3
Original line number Diff line number Diff line
config_version	1.2
rsync_long_args	--del --numeric-ids --hard-links --acls --xattrs
snapshot_root	/backup
snapshot_root	/root/backup
cmd_cp		/usr/bin/cp
cmd_du		/usr/bin/du
cmd_logger	/usr/bin/logger
@@ -10,5 +10,5 @@ interval weekly 8
backup	/home/	home/
backup	/srv/code/	code/
backup	/srv/www/	www/
backup	/backup-thecus/postgres/	postgres/
# backup	/backup-thecus/mysql/	mysql/
backup	/root/backup/postgres/	postgres/
# backup	/root/backup/mysql/	mysql/