#!/bin/sh # The Archive is encrypted with this (since it is transfered to FTP) export PASSPHRASE="foo" # The FTP-password (not exposed at cmdline export FTP_PASSWORD="bar" # Do a fullbackup weekly OPTIONS="--full-if-older-than 14D" KEEPFULLS=5 # Where to backup to TARGETBASE=ftp://user@server/backups/ #TARGETBASE=file:///tmp/test function create_mysql_snap { /usr/bin/mysql --defaults-extra-file=/etc/mysql/debian.cnf <>/var/log/lvm-backup.log 2>&1 backup_lvm home /root/bin/home-include.txt >>/var/log/lvm-backup.log 2>&1 backup_lvm var /root/bin/var-include.txt create_mysql_snap >>/var/log/lvm-backup.log 2>&1