|Since the backup only allows for local or remote storage.. typically, two backup crons are needed.|
This is less desirable as it doubles the overhead on the box for backups.
The solution is to only create 1 backup cron for ftp, and use the user_backup_post.sh script to copy the file locally before it's uploaded with ftp and deleted.
1) Create the following file
2) In that file, add the following code:
3) Chmod the script to 755:
chmod 755 /usr/local/directadmin/scripts/custom/user_backup_post.sh
|I want my locally created backups to contain a date in the filename|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST