How to force backup of ONE account from command line

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,336
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Let's say I need to download a backup of XXXX account before I do some modifications in the contents of the site. How can I force the generation of that backup from the command line?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

You can backup the account manually via:

Code:
/scripts/pkgacct $username
Thank you.
 

BIGBANG ITS

Member
Oct 29, 2019
13
2
3
Dubai, United Arab Emirates
cPanel Access Level
Root Administrator
the answer is not correct bro
can you please show full script

[[email protected] ~]# /scripts/pkgacct $alaincla
A user is required.
Usage:
/usr/local/cpanel/bin/pkgacct [options] user [workdir]

user = the user to package
workdir = the directory to put the package

Options:
--help brief help message
--man full documentation
--allow-override use alternate script
--mysql=X.X set target MySQL version
--roundcube=X.X set target Roundcube version
--dbbackup=(all|schema|name) specify database backup type
--get-version display version of script
--use_backups use last file as template
--incremental refresh existing file
--split create file in chunks
--nocompress do not compress file
--compress compress file with Gzip
--userbackup run in userbackup mode
--backup save as account backup
--skipacctdb exclude all databases
--skipapitokens exclude API tokens
--skipauthnlinks exclude external auth credentials
--skipbwdata exclude bandwidth data
--skipdnszones exclude DNS information
--skipdomains exclude sub, parked, and addon domains
--skipftpusers exclude FTP accounts
--skiphomedir exclude home directory
--skipintegrationlinks exclude integration links
--skiplocale exclude locale information
--skiplogs exclude log files
--skipmailconfig exclude mail configuration
--skipmailman exclude mailing lists
--skipmysql exclude MySQL content
--skippasswd exclude user's password
--skippgsql exclude PostgreSQL content
--skippublichtml exclude the public_html directory
--skipquota exclude disk quota limits
--skipresellerconfig exclude reseller privileges
--skipshell exclude shell privileges
--skipssl exclude server-level SSL certificates
--skipuserdata exclude domain-level configuration
--serialized_output encode output as JSON

[[email protected] ~]#
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,336
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Just want to ask you, where is the backup goes? if I'm using external backup configured on settings
The backup file is saved to /home/cpmove-{username}.tar.gz

Same question here BTW: Doesn't seem to be uploaded to the remote destination.
cPanel should add one parameter to force upload. It's a must for those of us using remote destinations. I guess: propose it at Feature Requests?