Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member DeepXP's Avatar
    Join Date
    Feb 2005
    Posts
    51

    Exclamation Remote backups?

    Hi,

    I just wanted to get some opinion on remote backups, I personally feel the default option in WHM might reveal the FTP password. Are you guys aware about any good method? I checked few service providers but they are way too costly, the backup costs reach around 100 USD a month, which is somehting does not fit well.

    I checked Mosso CloudFiles can be used for backup.

    Anyone tried it? I found this script online (to backup data on Mosso CloundFiles on daily basis) but not sure about it..

    Would like to hear some views on remote backups.

    Regards,
    Deep

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    6

    Default

    I use rsync to synchronise to another server over SSH using pre-generated keys for authentication.

    The rsync command I'm using is this:
    rsync -az -e "ssh -p 22 -i /backup/rsync/.ssh/rsync-key" /backup/cpbackup rsync@REMOTE_HOST:/backup/rsync/LOCAL_HOST

    This will copy the entire backup file-structure (daily, weekly, monthly, all accounts and system settings) to a folder on the remote host.

    I've added the following cron script (after setting the variables to my particular setup) as /etc/cron.daily/rsync_backup:

    #!/bin/sh

    RSYNC=/usr/bin/rsync
    SSH=/usr/bin/ssh
    PORT=22
    KEY=/home/thisuser/cron/thishost-rsync-key
    RUSER=remoteuser
    RHOST=remotehost
    RPATH=/remote/dir
    LPATH=/this/dir/

    $RSYNC -az -e "$SSH -p $PORT -i $KEY" $RUSER@$RHOST:$RPATH $LPATH

    And then used crontab -e to set this to run every morning at 5am by adding this line at the end:
    0 5 * * * /etc/cron.daily/rsync_backup

    All done, and tested! Hope this helps someone else.

    (originally posted in response to a thread on webhostingtalk, and largely based on a script I found online but can't find a link for now)

  3. #3
    Member DeepXP's Avatar
    Join Date
    Feb 2005
    Posts
    51

    Default

    Thanks a lot, I will give this script a try..

Similar Threads & Tags
Similar threads

  1. Remote incremental backups
    By cwalke32477 in forum Data Protection
    Replies: 4
    Last Post: 06-09-2010, 01:14 PM
  2. Security with remote backups?
    By bls24 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-24-2009, 01:08 PM
  3. Remote Backups
    By kemhof in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2008, 03:45 PM
  4. Remote FTP Backups
    By eglwolf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-14-2005, 12:51 PM
  5. Remote Backups
    By purplepaws in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-10-2003, 01:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube