I've read and found numerous threads on doing backups via cron with all sorts of info.. and well most of it involves "hacks" or something that is not reliable, or just plain outdated!
I'd like to get just the facts maam! On how to create a FULL BACK UP via cron, if it can sfp/scp it out to a remote storage area, great... but I can create my own BASH script to do that.
The setup is a Reseller account on WHM and one of the CPanel accounts needs more backups than the hosts backup system creates, plus more backups is always better!
In /usr/local/cpanel/bin
I have :
I just want to setup a cronjob to do a FULL BACKUP of that account. .then I will pass that off to a BASH script to scp/sftp it elsewhere...
00 00 * * * /usr/local/cpanel/bin/backup --force
This will then create the files I've been doing by hand via the CPanel like:
I can script sending them out...
I just want the current correct version of doing this....
Thanks.
I'd like to get just the facts maam! On how to create a FULL BACK UP via cron, if it can sfp/scp it out to a remote storage area, great... but I can create my own BASH script to do that.
The setup is a Reseller account on WHM and one of the CPanel accounts needs more backups than the hosts backup system creates, plus more backups is always better!
In /usr/local/cpanel/bin
I have :
Code:
-rwxr-xr-x 1 root root 81645 Apr 18 15:57 backup
lrwxrwxrwx 1 root root 19 Apr 4 02:15 backupadmin -> admin/Cpanel/backup
-rwxr-xr-x 1 root root 2399 Mar 15 11:35 backup_cmd
-rwx------ 1 root root 56236736 Apr 18 15:56 backup_restore_manager
lrwxrwxrwx 1 root root 6 Apr 4 02:15 backupwrap -> cpwrap
-rwxr-xr-x 1 root root 24613800 Apr 25 04:03 pkgacct
00 00 * * * /usr/local/cpanel/bin/backup --force
This will then create the files I've been doing by hand via the CPanel like:
Code:
rw------- 1 ime me 23957795 Apr 26 06:19 backup-4.26.2017_06-18-34_me.tar.gz
-rw------- 1 me me 13184386 Apr 7 17:49 backup-4.7.2017_17-49-18_me.tar.gz
-rw------- 1 me me 30200109 May 3 14:49 backup-5.3.2017_14-47-40_me.tar.gz
I just want the current correct version of doing this....
Thanks.