(09-06-2015, 04:56 PM)bbspike Wrote: You could use the following commands:
Backup sentora+hosts:
find /var/sentora -path '*.*/.*' -prune -o -type f -print | zip /choosedirectory/`date +%a-%d-%b-%H-%M`-backup.zip -@
Backup all sql:
mysqldump -u root -ps(root password) --events --all-databases| gzip > /choosedirectory/`date +%a-%d-%b-%H-%M`-backup.sql.zip
You can put these commands in a cronjob to run every nicht.
Thank you for the reply. But can we schedule an FTP upload too?