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.

Enable both remote and local backups?

Discussion in 'Data Protection' started by jhyland87, Jun 8, 2009.

  1. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Hey, I have 2 questions about the backups..

    1) Is it possible to enable both remote and local backups?

    2) Is it possible to change the remote backup from FTP to SCP?

    If no for both, does anyone know of any good backup scripts?

    Thanks :)
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    I love backups, alot. I backup locally on my personal machine and sync those back files to another machine using a custom script I wrote.

    The hook for postbackup found here: ScriptHooks < AllDocumentation < TWiki will execute after your backup is done. You can use those to sync via what ever means you'd like. I recommend rsync over ssh using publickeys.
     
  3. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    I have never used rsync, do you have any good tutorials? I would love to try it.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  5. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    --delete removes files from the destination that no longer exist at the source
    --stats provides statistics at the end of the rsync
    -v verbose
    -a archive mode
    -e specifies the remote shell to use (ssh in this case)
     
  7. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    So is it possible to make the backup run in SCP and not FTP? Ftp is so slow
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    SCP is not natively supported for full server backups at this time.
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I also very much doubt SCP will be faster that FTP since the data has to be encrypted and then decrypted as it is transferred.
     
  10. mediakreativ

    mediakreativ Member

    Joined:
    Jun 29, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello there,

    that seems to be a good solution for me - i have a rootserver with an FTP backupspace (not possible for rsync).

    In WHM configuration it says "Remote FTP - Accounts only" - does that mean that databases are not included? Or is there a possibility to backup the complete WHM settings?

    But even if thats not possible the double backup (one local, afterwards transfered via FTP) would be fine, because then its possible to choose an incremental backup, right?

    Which method would you recommend for doing the FTP backup then? As i understand the second backup could be started with postcpbackup - so postcpbackup would start a backupscript, right? Any recommendations for a good working script?

    Would be great if somebody could give me advice - maybe somebody has used the WHM backup/FTP backup combination too?

    Kind regards,

    Christian
     
Loading...

Share This Page