How to Generate-Split-Transfer-Restore a Backup

From ReduxWiki

Jump to: navigation, search

Contents

[edit] cPanel

cPanel => Backups

The Generate a Full Backup feature will create an archive of all your accounts data (files) and configurations of your website to keep a local copy for safe keeping.

Image:Warning-small.png Restoration of these backups will require root access of a server making use of cPanel.

[edit] Home Directory

Image:cpanel-backup.png

Selecting Generate Backup with default settings in place Home Directory will do exactly that. The full (complete) cPanel account backup will then reside within your home directory (/home/username/)


[edit] Remote Location (FTP)

Image:cpanel-ftp.png


[edit] Command Line

Generating a Backup (cPanel)

/scripts/pkgacct username


Split for Transfer (optional)

split -b1024M cpmove-user.tar.gz cpmove-username.tar.gz.

Image:Warning-small.png Trailing . is important.


Re-join Split Files

cat file01 file02 file03 cpmove-username.tar.gz


[edit] Transferring your Backups

Locally

mv cpmove-user.tar.gz /home/directory/


Remote location

scp cpmove-user.tar.gz user@host.com:/home/username/


Remotely (multiple files)

scp cpmove-* user@host.com:/home/username/


[edit] Restoration

Image:Warning-small.png backup/cpmove (backups) will need to be located within the /home/ directory for restoration.

/scripts/restorepkg username



Image:Tip.png Back to How To Documents
Personal tools