Skip to main content

Backup to another server without cpanel

Comments

6 comments

  • kernow
    rsync should do that job easily.
    0
  • cPanelMichael
    Hello :) You could transfer the files to the destination server using a utility such as SFTP, SCP, or Rsync. Thank you.
    0
  • ASTRAPI
    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
  • kernow
    rsync -au /backup/`date +%Y-%m-%d`/* remote_server:/directory
    0
  • ASTRAPI
    Does that get only the current day that this cron run? `date +%Y-%m-%d`
    0
  • cPanelMichael
    It's using the date at the time the cron job runs. Thank you.
    0

Please sign in to leave a comment.