How to run cPanel backups using ssh
Sometimes you may wish to backup a single account or your whole cPanel server using ssh. There are currently two different types of backup systems in use in cPanel legacy backups and the new backup system. Most older servers will still be using the legacy backup option. New servers will usually be using the new backup system. We’re only going to cover the new backup system here.
To complete this you will need to be logged in as the root user. You can run cPanel backups manually using ssh
For the new backup system on cPanel dedicated or VPS servers
Login as root and issue the below command. This runs the backup server wide
If your backups are set to run on a different day then the above command won’t work. You will need to force cPanel to run the backups by using the –force argument;
Force cPanel Backups
The –force argument will force cPanel to run backups
Watch Backups In real Time
If you want to watch the backup run from the console you can use tail. You should be seeing a link to the backup log file in the console now. Use the tail -f command with the file name in the console to watch the backup in real-time.
tail -f bacvkup93472374854.txt
Backup A Single cPanel Account
We have covered how to backup a cPanel account and migrate it to a new host in the How to Migrate cPanel accounts article.
How was this article?
More from cPanel
How To Install A Cloudflare Origin SSL Certificate In cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
Create a SWAP partition on CentOS, RHEL and AlmaLinux without a reboot
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
Help fixing Error: last request failed: [AUTH] Authentication failed.
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …