Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NukeNick

CPanel – Creating and Restoring a backup in SSH

Recommended Posts

Create the backup using the following command:

/scripts/pkgacct accountname

 

If you want to restore the backup on a new Cpanel server, or if the account doesn’t exist on your webserver:

CPanel Simple account restoration
 
/scripts/restorepgk <package filename>

 

 

If you want to restore the backup, use the following command:

Account full Backup restoration
 
/usr/local/cpanel/bin/restorepkg --skipaccount cpmove-accountname.tar.gz

 

 

Important! The command above, restores the accounts using the backup file contents even if the account exists on the web server (–skipaccount)

Edited by NukeNick
  • Like 2

Share this post


Link to post
Share on other sites

Για να το διευρύνουμε, αν θέλουμε όλα τα current hosted accounts από SSH τότε:

for i in `/bin/ls -A /var/cpanel/users` ; do /scripts/pkgacct $i ;done

ενω αν έχουμε τα backups για να γίνουν μαζικά restore:

for i in `/bin/ls -A /home/*.gz` ; do /scripts/restorepkg $i ;done

 

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×