For starters, take the backup and uncompress it (tar -xvzf ) and enter into the resulting folder.
Cpanel backup full#
There may be a time when you want to restore parts of a full backup but not the whole thing, so it’s helpful to know where certain things are kept within a cPanel backup archive. A restored backup file is moved to /home/cprestore. You can also restore backups from within WHM ~> Restore Backups, where you’d enter the username and let WHM restore it for you. You can pass –ip=(y|n|) if you want to give the account a dedicated IP address. If the user on the server already exists and you want to restore anyway, pass –force before the username. If the user was a reseller and you want to remove those privileges upon restore, pass –skipres before the username. If the backup is located elsewhere on the server, specify that in the parameter to the command. The user should be terminated from the system prior to restoring a full backup, for the best results. This will automatically look in a few directories for a cPanel backup file (cpmove-$, backup–$) and start restoring it. To restore from command line, move the backup file to /home and run: To restore a full backup, you have to be an administrator on the server, however, you can restore MySQL and cPanel home directory backups from a user’s cPanel as long as the backups being restored are actually of those types and not a full backup. This will back up all the account files, minus /home/ Tip: If you want to generate a backup of a large account and skip the account’s home folder, you can pass the –skiphomedir option. This will start generating the backup in /home (if /home is your home dir) and then move it to the user’s home folder when complete, and the file will be named
Cpanel backup download#
Or you can go into cPanel and select Backups ~> Download or Generate Full Web Site Backup, or use the Backup Wizard. *By default, backups made with this option will go to /home, unless is specified You can generate backups on-demand using a couple methods: cPanel has changed a lot (for the better) in the way that processes are run, so backups made by older versions of cPanel may not come over cleanly on newer versions, and vice-versa.The actual process of generating a backup for a larger account essentially doubles the amount of disk space that the account is using for a short amount of time, so the administrator needs to make sure plenty of space is available.Larger sites may not be able to utilize cPanel backups without taxing the resources on the server Compressing a large amount of data can be very CPU intensive. Due to the way the backup is run, it’s NOT optimal for larger accounts since the files are copied to the disk and then gzipped.With this system, it’s very easy to mass-transfer a large number of sites from one cPanel server to another.The actual backup file tends to be up to 80% smaller than the size of the account, since it’s gzipped.The backup is complete, and can be pieced apart for transferring site content to other servers.
Cpanel backup portable#
The backup is portable to almost any other cPanel server, and is fully automated (and somewhat flawless since cPanel 11).That being said, there are some pros and cons to the way cPanel does its backups: The cpmove folder is gzipped into a file called /home/cpmove-$.All databases and crons are dumped into the cpmove folder into ‘mysql’.The entire home directory is copied to the cpmove folder.Configurations are copied to the above cpmove folder (reseller, suspension info, counter data, bandwidth stats, DNS zones, FTP data, logs, SSL certificates, mailing lists, etc).
Cpanel backup how to#
We’re going to tell you exactly how the cPanel backup system works, how to generate/restore backups, what’s in the backups, and how to automate them so you can spend more time at the bar definitely working and not drinking beer, instead of worrying about what’s going to happen if a gnome crawls into your server vent and eats your hard drive. Of course, we’re not going to stop there. Us cPanel system admins pity those who neglect to back up their sites and then blame their hosts when something goes awry…especially when cPanel makes it so damn easy to back up your entire account in just a few clicks - And we’re going to tell you how to do it.