Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default Enable both remote and local backups?

    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. #2
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    452
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Quote Originally Posted by cpanelerice View Post
    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.
    I have never used rsync, do you have any good tutorials? I would love to try it.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That's exactly the method I use for all of our servers. Many moons ago I posted the following:
    http://forums.cpanel.net/f7/rsync-ta...tml#post279060
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Quote Originally Posted by chirpy View Post
    That's exactly the method I use for all of our servers. Many moons ago I posted the following:
    http://forums.cpanel.net/f7/rsync-ta...tml#post279060
    That looks pretty good, I think I might try it.

    Can you explain what the parts in bold do?
    rsync --delete --stats -vae ssh /backup/cpbackup/daily remote@remote.server.com/backup/server

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    --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)
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    So is it possible to make the backup run in SCP and not FTP? Ftp is so slow

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    So is it possible to make the backup run in SCP and not FTP? Ftp is so slow
    SCP is not natively supported for full server backups at this time.

  9. #9
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #10
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default

    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

Similar Threads & Tags
Similar threads

  1. Simultaneous Local and Remote Backups
    By cPanelDavidG in forum Feature Requests for cPanel/WHM
    Replies: 10
    Last Post: 12-09-2011, 08:20 PM
  2. remote default MX and local/remote domains
    By TaneNZ in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 04-19-2011, 04:45 PM
  3. SOLVED: Local & Remote Backups
    By davetanguay in forum Data Protection
    Replies: 2
    Last Post: 04-14-2010, 10:22 AM
  4. Local DNS, first mx remote and second mx local
    By Tagor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-04-2006, 12:41 AM
  5. configure enable-local-infile
    By Allis in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-30-2004, 12:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube