The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

backup on 2nd hard of 2nd server!

Discussion in 'General Discussion' started by manghooli, Dec 6, 2004.

  1. manghooli

    manghooli Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    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. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    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. manghooli

    manghooli Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Thanks :)

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

    Thanks
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    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. blweb

    blweb Active Member

    Joined:
    Oct 1, 2004
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    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)




     
  6. manghooli

    manghooli Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    #6 manghooli, Dec 8, 2004
    Last edited: Dec 8, 2004
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    that was a good one manghooli :)
     
  8. manghooli

    manghooli Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    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. manghooli

    manghooli Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page