Hi There,
We are looking to increase the redundancy of our backups and were wondering it is possible to make the cpbackup send the backups off to two remote ftp locations instead of just one?
Cheers,
Ben
Hi There,
We are looking to increase the redundancy of our backups and were wondering it is possible to make the cpbackup send the backups off to two remote ftp locations instead of just one?
Cheers,
Ben
You will need a standalone script to do this. There are some ftp scripts that do this, it grabs the existing backup files and sends them to a remote location.
Hi Guys,
Thanks for the replies, I just took a look at the /scripts/cpbackup script, I see that basically after the backup is created it calls the ftpsend() sub (line 727) which basically puts the backup on the remote server via FTP.
Now I have never used perl before, so this is pretty alien to me, but if we were to just duplicate the ftpsend sub and name it say ftpsend1 then just replace the local variables with the variables for the second server (so basically just change $ftpuser,$ftppass and $ftphost). Then add ftpsend1() just beforeSo it would readCode:unlink("${target}/${user}.tar.gz");
Do you think this would work. Obviously it would be more efficient to add a for loop and take the data entry as an array from the cpanel entry, but I think this method would be easier if cpanel update the script.Code:ftpsend( "$target", "${target}/${user}.tar.gz", "${user}.tar.gz" ); ftpsend1( "$target", "${target}/${user}.tar.gz", "${user}.tar.gz" ); unlink("${target}/${user}.tar.gz");
Any thoughts?
Cheers,
Ben
You could copy the cpbackup into postcpbackup, and change the values... if you wish.
@jhyland87 - Cheers for that, I didnt know about postcpbackup. I googled it and found this article which is perfect for my situation.
Richy’s Random Ramblings » cPanel: Simple Script To Backup Over rSync
Cheers,
Ben
Isn't it better to rsync the backups from the backup server to the stanby-by backup server? This will cause less load on your cPanel server as well![]()
- cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
- Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
- Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
SoftDux- The Leaders in Software
Use the coupon: cpanel-06 to get 20% off our packages