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.

How to download cpbackup backups

Discussion in 'Data Protection' started by czerdrill, Jul 13, 2012.

  1. czerdrill

    czerdrill Well-Known Member

    Joined:
    Feb 18, 2011
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    I'm trying to understand how to dl the cpbackups locally. I only do weekly backups, so the backup exists in backup/cpbackup/weekly but its full of tar.gz files of every account. Would I have to do a scp for each tar.gz file in order to have local copies of the backup? Or is there a master tar.gz which contains all the info for all the accounts?

    I guess I'm trying to understand the point of the cpbackup, and how to actually get it local.
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    387
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hello,

    There is no such a master tar.gz file. cPanel can take account backup only and there is no option to bundle the backup of all users to a file!

    Yes, you can scp the files to your local machine if you need a local copy of backup. Else if you have a local FTP/SSH server running, you can configure cPanel backup to move backup files remotely than to local drive.

    Thank you.
     
  3. NetMantis

    NetMantis BANNED

    Joined:
    Apr 22, 2012
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Utah
    cPanel Access Level:
    DataCenter Provider
    Putting all the account backups into a single file for multiple sites would be a VERY BAD IDEA!

    You would, in most cases, end up with an extremely massively huge file which at best would be hard to transfer.

    Also, unless you are talking about a small handful of sites or less, I strongly do not recommend downloading backups to a home cable or DSL internet account as you would often be talking about an enormous amount of a data transfer and bandwidth used for really no purpose whatsoever and to put the files back again would usually be a somewhat lengthy and difficult process because of slower upload speeds on most home accounts.

    I would recommend that you get another server location somewhere else in a different data center which could be as simple as a small VPS server (you only really need the hard drive space and SCP access) or any of the free file storage services out there (though on these I'd consider encrypting the files before transferring them).

    Transferring files from server to server at data center speeds is often many times faster than transferring copies of the files to or from home so it won't take as long to download duplicate copies of your backups.

    Another plus is if you had another server, even a small cheap VPS, you could actually automate the backup process very easily and have your main hosting server automatically transfer the files on a regular cron schedule.

    If you are doing the backups manually however, I'd usually recommend using /scripts/pkgacct "cpmove" files verses the automatic nightly backup files in cpbackup as these files tend to be a little bit more robust for re-creating accounts should something go wrong and I've seen fewer problems restoring those files though you can use either.

    I understand you are thinking about "What happens if something happens to my server?" or even "What happens if something happens to my host or the data center?".

    These are all good things to think about but unless you only have a couple of small sites to worry about, I would not be making regular downloads to your home computer but rather setup some other server source deliberately in a different data center and even a different geographical location from your main server. With that kind of redundancy, it will be doubtful you'll ever lose any data even in the most "worst case" type of scenario.

    Cpbackup is the primary backup for your web sites should something happen to those sites such as hacked, hard drive failure, etc.

    Ideally, cpbackup should be directed to a different drive than your primary drive or a separate configured RAID storage array. This way your primary backups will all likely still be around in the event of a drive failure of your primary data storage.

    You can direct cpbackup to go to the same drive storage as your web sites but in doing so the backups are limited really to being able to fix hacking or screw ups by the user and would not be very useful for hardware failures.

    Keeping a duplicate copies of those same backups in a different server, in a different data center, on a different network, at a different geographical location however gives you the ultimate redundancy and in that case you would be protected from not only failure of your hardware on your hosting server but also from your data center going offline and / or your host going out of business.
     
    #3 NetMantis, Jul 14, 2012
    Last edited: Jul 14, 2012
Loading...

Share This Page