Permalink
Browse files

Merge pull request #8 from searchify/master

Fixing path to raw logs in backup.sh
  • Loading branch information...
santip committed Feb 13, 2012
2 parents d1941be + 62244c6 commit 1b3f5079b10fcde2cb14d5de5105acd9704e5562
Showing with 3 additions and 2 deletions.
  1. +3 −2 storage/backup.sh
View
@@ -4,8 +4,9 @@
while true; do
echo starting sync at `/bin/date`
- ionice -c 2 -n 5 rsync -av --append-verify --delete /data/storage/live /archive/
- ionice -c 2 -n 5 rsync -av --append-verify /data/storage/history /archive/
+ ionice -c 2 -n 5 rsync -av --append-verify --delete /data/storage/raw/live /archive/
+ # we don't use --delete with /data/storage/raw/history so we can safely remove old logs from there
+ ionice -c 2 -n 5 rsync -av --append-verify /data/storage/raw/history /archive/
echo finished sync at `/bin/date`
sleep 2
done

0 comments on commit 1b3f507

Please sign in to comment.