manual backup of one cPanel account from command line

xtego

Registered
May 11, 2016
1
0
1
Williamsport, PA
cPanel Access Level
Root Administrator
I'm trying to find a way to backup a single cpanel account using the new backup system.

"/scripts/pkgacct" - creates the compressed file I need but just puts it in the local /home folder. I need to to export to my webdav additional location as defined in the backup configuration.

I found a command to force a backup of all accounts using the new backup system:

/usr/local/cpanel/bin/backup --force

But how do I force a backup of just one account using the new backup system?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You would have to manually copy the archived backup file to the remote destination after backing it up through "/scripts/pkgacct", or you would have to temporarily exclude all users except for the one you want copied before running the "/usr/local/cpanel/bin/backup --force". You can do this via:

"WHM >> Backup >> Backup User Selection"

Thank you.