Backup to another server without cpanel
Hi
I need to transfer all the cpanel backups to another linux server (without cpanel there) and i want your opinion on what is the best way to do it?
Also maybe i will have a problem on crons as the cpanel backup creates a new date folder and this new is the only one that i want to transfer and not the old ones again and again...
Thanks
-
rsync should do that job easily. 0 -
Hello :) You could transfer the files to the destination server using a utility such as SFTP, SCP, or Rsync. Thank you. 0 -
Yes i was thinking to use rsync but in my backup folder i am getting a new date folder for the new backup and this new folder is the only folder that i want to use but how can i tell to rsync to backup the new folder only? Thanks 0 -
rsync -au /backup/`date +%Y-%m-%d`/* remote_server:/directory 0 -
Does that get only the current day that this cron run? `date +%Y-%m-%d` 0 -
It's using the date at the time the cron job runs. Thank you. 0
Please sign in to leave a comment.
Comments
6 comments