Results 1 to 9 of 9

Thread: backup on 2nd hard of 2nd server!

  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    57

    Default backup on 2nd hard of 2nd server!

    How can i backup accounts of FIRST server to SEOCND HDD of SECOND server?!

    maybe the main question was how can i create a safe FTP account in PureFTPd?!

    Thanks

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/WHM Access Level

    Root Administrator

    Default

    I would suggest using rsync or scp.

    SCP is file transfer over a ssh tunnel so as long as you can login to the shell as the user you can transfer files.

    Rysnc is used to sync files, it will only transfer the files that have changed.

  3. #3
    Member
    Join Date
    Aug 2004
    Posts
    57

    Default

    Thanks

    so i should use a backup script to do that for me, is there any script in the Internet?!

    Thanks

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    2,002

    Default

    Just Back up FIRST server to your normal back up location on that server
    and set up a public key to server 2 and set up a cron job to scp the backups to run once a day


    thats what I do

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    41

    Red face rsync

    I use this as my script, yet i haven't figured out how to get it fully functional:

    rsync --port=23 -P -v -z -a -e "ssh -p 23 -l root" --exclude "/proc" --exclude "/var/log" --exclude "/usr/backup" --delete clienthost.com:/ daily.1

    I ideally would like it to reflect:

    rsync --port=23 -z -a -e "ssh -p 23 -l root" --exclude "/proc" --exclude "/var/log" --exclude "/usr/backup" --delete clienthost.com:/ daily.1 touch daily.1

    but it returns an error of :

    rsync error: syntax or usage error (code 1) at main.c(933)




    Quote Originally Posted by dalem
    Just Back up FIRST server to your normal back up location on that server
    and set up a public key to server 2 and set up a cron job to scp the backups to run once a day


    thats what I do

  6. #6
    Member
    Join Date
    Aug 2004
    Posts
    57
    Last edited by manghooli; 12-08-2004 at 07:47 AM.

  7. #7
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/WHM Access Level

    Root Administrator

    Default

    that was a good one manghooli

  8. #8
    Member
    Join Date
    Aug 2004
    Posts
    57

    Default

    can we mix cpanel backup solution with rsync??
    or
    can we use simple CPanel FTP Backup solution for this reason?!

    oops, i must read a lot about rsync n test it a lot

  9. #9
    Member
    Join Date
    Aug 2004
    Posts
    57

    Default

    the most useful document that i found is:
    http://www.mikerubel.org/computers/rsync_snapshots/

Similar Threads

  1. using 2nd hard disk
    By wgalafassijr in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 05-26-2010, 09:10 PM
  2. 2nd hard drive - questions
    By kdarray in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-03-2007, 07:48 AM
  3. Dont know how to format a 2nd hard drive
    By edgaratgmi in forum New User Questions
    Replies: 2
    Last Post: 02-14-2007, 11:37 AM
  4. Replies: 0
    Last Post: 06-01-2004, 06:10 PM
  5. 2nd hard drive
    By semaj in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-30-2003, 05:17 PM