]> git.treefish.org Git - backmeupscotty.git/blob - backmeupscotty-example
c49e2adb76d6c00eeb0a90531b9d10994de2be3d
[backmeupscotty.git] / backmeupscotty-example
1 #!/bin/bash
2
3 . ./backmeupscotty
4
5 REMOTE_HOST=localhost
6 REMOTE_BASE=/home/alex/backtest
7 ARCHIVE_KEEPNBACKUPS=30
8 ARCHIVE_KEEPNDAYS=1
9
10 if ! isIncompleteOrNthDay dest; then
11     scottyinfo "This is not the nth day and no incomplete backup exists."
12     exit 0
13 fi
14
15 scottysync /home/alex/backtest/source dest "/gack,/gugu/*"
16 scottysync /home/alex/backtest/source2 dest2