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.

Creating a cronjob for automatic weekly backups of a specific account

Discussion in 'Workarounds and Optimization' started by Theodore Henry, Jun 3, 2015.

  1. Theodore Henry

    Theodore Henry Registered

    Joined:
    May 21, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jamaica
    cPanel Access Level:
    Reseller Owner
    Hello all,

    I have a reseller account using the WHM/CPanel suite. I've configured incremental daily backups to take place using WHM's backup system. This works well but I also would like to create a weekly backup of one specific account and ftp it ... somewhere/anywhere apart from the server. My research has led to me a cronjob as the best option but alas, I have no idea how to go about creating this cronjob.

    Can anyone help me with understanding what to put in and how to create this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify if you have reseller or root access to the server? Resellers should not have access to configure backups using Web Host Manager.

    Thank you.
     
  3. Theodore Henry

    Theodore Henry Registered

    Joined:
    May 21, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jamaica
    cPanel Access Level:
    Reseller Owner
    Hi, I have root access to the server.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    There are no scripts or features that will automatically move a manually generated archive to a remote server via a cron job. It's possible to create a backup for a single account with a command such as:

    Code:
    /scripts/pkgacct $username
    You would have to setup a custom cron job as "root" that runs this command and then moves the archive to the remote server. You must use a utility such as "rsync" or "sftp" in your custom script to move the file.

    Thank you.
     
Loading...

Share This Page