#!/bin/bash
set_vars () {
chroot_dest=/
#db_list=$(chroot ${chroot_dest}/ /usr/bin/mysql -e 'show databases;' | egrep -v '("+--"|Database|mysql|information_schema|performance_schema)')
backupdate=$(date +%Y%m%d-%H%M)
backup_dest=/backup2/dom0
backup_dest_chroot=${backup_dest}/rootfs/
backup_dest_mysqldumps=${backup_dest}/mysqldumps/
exclude_list=/etc/backup/exclude-dom0.list
}
rdiff_backup () {
#set -x
/usr/bin/rdiff-backup --print-statistics --exclude-sockets --preserve-numerical-ids --exclude-globbing-filelist ${exclude_list} ${chroot_dest} ${backup_dest_chroot}
}
set_vars
rdiff_backup
Вот как то так. Только dest у вас, соответственно, другой будет.