projects
/
backmeupscotty.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added verbose mode info message
[backmeupscotty.git]
/
backmeupscotty-example
1
#!/bin/bash
2
3
. ./backmeupscotty
4
5
REMOTE_HOST=localhost
6
REMOTE_DIR=/tmp/scotty/dest
7
ARCHIVE_KEEPNBACKUPS=10
8
ARCHIVE_KEEPNDAYS=0
9
BACKUP_RUNEVERYNTHDAY=1
10
SYNC_SRC="/tmp/scotty/src"
11
SYNC_EXC="/gack,/gugu/*"
12
13
function prepare {
14
echo "prepare"
15
sleep 5
16
}
17
18
function cleanup {
19
[ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup"
20
}
21
22
backmeupscotty $@