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.

Custom script to copy a SINGLE backup file to a remote server from a WHM *or* Amazon S3?

Discussion in 'Data Protection' started by spaceman, Oct 16, 2014.

  1. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Hi All,

    We host many websites, and one client is asking us for a custom backup solution (in addition to our standard backups policies and procedures that apply to all hosting accounts).

    Once a month, he'd like a cron job to kick off a process that copies his latest daily backup file to a remote file server of his choice which he'll supply the authentication credentials for.

    That's it.

    Oh, and the end of this process should trigger a notification email to him (and us, for our records), to indicate success or failure, including any relevant diagnostics (e.g. "connection timeout") in the event that the copy process doesn't complete successfully.

    So can anyone throw me a bone here? E.g.

    1. Perhaps there's a cPanel add-on that specifically facilitates this? Will keep Googling...
    2. Perhaps someone's written a custom script to do this already, and is prepared to share? :)

    (long shot.... as part of our standard backup processes we already copy all backup files to Amazon S3. So the solution I'm looking isn't necessarily to copy a single backup file from a WHM server.... it could be to copy the same file from S3 to another remote location).

    Big picture - the solution I'm looking for strikes me as an upsell opportunity to offer up to all our hosting clients who'd like "additional peace of mind" from having a backup file automatically sent to a server that they own/control. This could be especially good for the more paranoid ones who ask the question "what happens to my website and backups if your company goes under?" Answer - pay us extra for a custom backup solution to a server of your choice!

    Thanks,

    Ross
     
  2. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    #2 spaceman, Oct 19, 2014
    Last edited: Oct 19, 2014
  3. 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 :)

    You could develop a custom script that utilizes /scripts/pkgacct to backup an account and then transfers the archive to a remote server using a utility such as rsync or SFTP.

    Thank you.
     
Loading...

Share This Page