Results 1 to 7 of 7
  1. #1

    Question How do I do auto backups using SSH?

    Hello everyone,

    I have a server with Virpus and another company, and I want to transfer all backups (nightly) to another backup server I have. I have set it up in WHM using FTP but, for some reason it just won't work.

    I was hoping one of you could tell me how I go about setting up these backups using SSH so that they will automatically upload all backups of every account from server1, to server2?

    A link to a tutorial would also do.

    Thanks in advance!

  2. #2
    Join Date
    Jul 2009
    google rsync - a lot of the production deployments uses this for onsite and offsite backup

  3. #3
    Join Date
    Jul 2009
    use rync -ave ssh local path /remote path/

    This will make it more faster

  4. #4
    Join Date
    Dec 2006
    It's worth making sure you've set up SSH key-based authentication too, to ensure that passwords don't need to be entered when performing the backups.

    In addition, it's also worth considering whether you should jail your receiving account, and/or use a shell that only permits things such as scp and rsync. rsh and scponly are shells that I can recommend.

    I don't think I've ever seen a tutorial covering the above two points, along with how to do simple rsyncs over SSH, so bear these in mind.
    GigaTux, Value Linux Hosting
    UK, US and Germany based Xen VPS. Reliability is key! Quick support response and 99.9% SLA.

  5. #5
    Join Date
    Aug 2009

    1. SSH key based authentication needs to be set between the servers.
    2. write a script to do the rsync like,

    rsync -avz -e ssh /local/backup/folder/ [email protected]:/remote/backup/folder/

    3. Add the script to a cron with specific intervals.

    Hope this would help ..


  6. #6
    Join Date
    Jul 2009
    1)From destination to source server make ssh password less I mean key based.

    2)Run a rsync from destination to get files from source.

    3)Set it as cron every night according to your server load.

  7. #7
    Using the rsync would be faster process if you have large files,

    rsync -av -e ssh [email protected]:/home/old_home/ /home/new_home/
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

Similar Threads

  1. Replies: 43
    Last Post: 05-13-2009, 03:49 PM
  2. Auto-Host 2 PHP Script | Auto WHM Account Creation | Paypal Billing
    By listenmirndt in forum Other Web Hosting Related Offers
    Replies: 1
    Last Post: 09-21-2004, 11:46 PM
  3. Auto-Host 2 | WHM & Paypal Auto-Account Creation Script - Just Released
    By listenmirndt in forum Other Offers & Requests
    Replies: 0
    Last Post: 07-06-2004, 04:41 AM
  4. Auto-Host (WHM auto-account creation PHP script) Giveaway/Trade Promotion
    By listenmirndt in forum Other Offers & Requests
    Replies: 0
    Last Post: 06-19-2004, 01:56 AM
  5. Auto MySQL database backups
    By Jim_UK in forum Hosting Security and Technology
    Replies: 0
    Last Post: 10-21-2002, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts