IT Linux Tips And Tricks

Automatic Schedule Backup of single cPanel account

cPanel Backup
Written by Ambi

An easy script for automatic schedule backup of single cPanel account

It does the following:

  1. Cleanup the backup folder for any old files
  2. Adds the current date and a random key (addition of this key is to avoid guessing of url, just an added measure)
  3. Take SQL backup using mysqldump
  4. Take the complete public_html and recentely taken mysql backup to a gz file
  5. rsync that file to a remote file server and at the same time cleans up the remote server folder location if there are old files from previous months
  6. Email the download link

Here’s the script


About the author