Showing an easy way of copying your files to an remote FTP Server.
Install ncftpapt-get install ncftp
apt-get install ncftp
40 2 * * * root ncftpput -f /root/.ncftp/backupserver.cfg -vZmRF /ftp-directory/ /local-backup/* 1>/dev/null
This way you will recieve warnings/errors.
-f <Filename> Serverconfig
-m try to create directory
-v verbose progress
-Z enable PassivTransfer
If something is going wrong, try to use the "-d
To keep your BackupSpace clean you can also issue an delete command before uploading.
Simply add: -W "delete /directory/*"
Unfortunately you can't delete recursivly, since it's assuming rm as delete.