4 # Make sure you can login to that host without a password.
5 # Can use ssh host aliases defined in .ssh/config here
6 REMOTE=me@my.backup.provider.com
9 RULES=/etc/backup/rsync-rules
11 # Credentials that can backup the databases
16 # Options to use for rsync
17 # (also see http://www.sanitarium.net/golug/rsync_backups.html)
18 RSYNCOPTS="--verbose --archive --hard-links --progress"
19 RSYNCOPTS+=" --delete --delete-excluded --numeric-ids --compress"
20 RSYNCOPTS+=" --chmod=u+rwx"
22 # I don't mind backup to take longer, I just don't want them to hog the line
23 # This value is in KBytes per second.
24 RSYNCOPTS+=" --bwlimit=25"
26 # location of db backup file
27 DB_BACKUP="${HOME}/backup/${HOSTNAME}-databases.sql"
29 # Source directory to backup
32 # destination directory to backup to.
33 # using the local hostname allows me to backup several host to the same backup location
37 # (uncomment ECHO to achieve a "dry run" effect)
39 MYSQLDUMP="${ECHO} /usr/bin/mysqldump"
40 BZIP2="${ECHO} /bin/bzip2"
41 SSH="${ECHO} /usr/bin/ssh"
42 RSYNC="${ECHO} /usr/bin/rsync"
43 CSTREAM="${ECHO} /usr/local/bin/cstream"
45 REMOTE_RM="${SSH} ${REMOTE} rm"
46 REMOTE_MKDIR="${SSH} ${REMOTE} mkdir"
47 REMOTE_MV="${SSH} ${REMOTE} mv"
48 REMOTE_CP="${SSH} ${REMOTE} cp"
49 REMOTE_TOUCH="${SSH} ${REMOTE} touch"
50 REMOTE_QUOTA="${SSH} ${REMOTE} quota"
51 REMOTE_DU="${SSH} ${REMOTE} du"
53 PIDFILE="/var/run/backup.pid"