Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Shell script for regular cPanel account backup

Discussion in 'Data Protection' started by postcd, Feb 24, 2012.

  1. postcd

    postcd Well-Known Member

    Oct 22, 2010
    Likes Received:
    Trophy Points:
    Hi, my site been hacked several times and i would like to make a script which will backup one of my cpanel accounts like every 3 hours.

    i know it is:

    /scripts/pkgacct accountname

    My question is how i can achieve that there will be like last 10 backups saved in the backup folder and backups will be numbered so there can be more backups in folder and not overwriten one backup file? How the script will look like? Thank you

    PS: If anyone interested here is the backup script with upload to FTP and deleting file from server.

Share This Page