Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (6 sloc) 364 Bytes
#!/bin/zsh
DESTINATION=/home/thib/balrog/
ssh balrog "nice -n 19 rsync --archive --force --delete --progress --exclude='mongodb/journal/prealloc.*' /home/mongodb /home/backup/"
for SOURCE in /home/backup/mongodb /etc; do
nice -n 19 rsync --archive --force --delete --progress --exclude='mongodb/journal/prealloc.*' --compress balrog:$SOURCE $DESTINATION
done