FTP_USER=user
FTP_PASS=pass FTP_SERV=111.111.111.111 if [ "`uname`" == "FreeBSD" ]; then WEBMIN_CONFIG=/usr/local/etc/webmin VIRTMINPATH=/usr/local/lib/webmin/virtual-server elif [ "`uname`" == "Linux" ]; then VIRTMINPATH=/usr/libexec/webmin/virtual-server fi $VIRTMINPATH/backup-domain.pl --dest ftp://$FTP_USER:$FTP_PASS@$FTP_SERV/backups/ --all-domains --all-features --except-feature logs \ --virtualmin email --virtualmin scheds --virtualmin templates --separate --newformat --ignore-errors --onebyone
BACKUPDIR=/home/user/backups/ if [ "`uname`" == "FreeBSD" ]; then WEBMIN_CONFIG=/usr/local/etc/webmin VIRTMINPATH=/usr/local/lib/webmin/virtual-server elif [ "`uname`" == "Linux" ]; then VIRTMINPATH=/usr/libexec/webmin/virtual-server fi $VIRTMINPATH/restore-domain.pl --source $BACKUPDIR --all-domains --all-features