cPanel domain backup

Posted: 0p in cPanel

Backup a single domain

# /scripts/pkgacct username

Restore a backup

# /scripts/restorepkg username

[# /scripts/restorepkg –force “username” /path of the backup.gz

Backup & Restore the whole domain using script.
########################
# awk ‘{print $2}’ /etc/userdomains > /home/list_of_backups.txt
for x in `cat /home/list_of_backups.txt`;do /scripts/pkgacct $x; done
for x in `cat /home/list_of_backups.txt`;do /scripts/restorepkg $x; done

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s