Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    52

    Default Are there any alternative scripts to Cpbackup?

    While the basic CPanel backup script works, it is somewhat limited

    Ideally it'd be great if there was an option to preserve X number of daily/weekly/monthly backups, instead of the system overwriting the existing ones

    Anyone know of a line of code/ing or script which can facilitate that?

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    There was another one on the forums, search for a smarter backup script. We quit using it when it the updates for it stopped, but if it might suit your needs.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  3. #3
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I've done one; you need to put a script in /scripts/postcpbackup. If interested let me know...

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    106

    Default

    Quote Originally Posted by rhenderson View Post
    There was another one on the forums, search for a smarter backup script. We quit using it when it the updates for it stopped, but if it might suit your needs.
    What are you using now?

  5. #5
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Just the standard cPanel backup.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    52

    Default

    Quote Originally Posted by rhenderson View Post
    There was another one on the forums, search for a smarter backup script. We quit using it when it the updates for it stopped, but if it might suit your needs.
    Thanks, yea that's the first one I looked up, but it's no longer available.

  7. #7
    Registered User
    Join Date
    Feb 2009
    Posts
    1

    Default re

    are you using wordpress? if so they have a few plugins that will backup everything up..and if not then I'm sorry I dont know..all I know is wordpress.

  8. #8
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    I believe that R1soft has integration with cPanel, but it's a little pricey.

  9. #9
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    You could just write a simple script to copy the files to a different location every night after backup has ran. Not a great way but it could solve your problems. You could rename the old folder before copying the new backups, something along those lines.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  10. #10
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    This script is the one I mentioned previously, it works along similar lines to what rhenderson has suggested.

    To make it work, you copy it into /scripts/postcpbackup and it is run after a backup completes successfully. The script rotates daily, weekly and monthly copies keeping N copies of each. You can specify N separately for daily, weekly and monthly through keepdaily/keepweekly/keepmonthly variables, and no copies are made if those variables are set to empty or not set. For instance, the following would keep two copies of daily backups and 3 weeks of weekly and no monthly backups:
    Code:
    keepdaily=2
    keepweekly=3
    keepmonthly=
    You can put these settings in the script itself or in a file /backup/cpbackup/.postcpbackup

    For the script, see www.whitedoggreenfrog.com/scripts - it's the top paragraph at the moment, postcpbackup...

  11. #11
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    ps: if you use and like it, could you post here; also if it has bugs, let us know.

    The version I have up at the moment uses "tac" but I can change it to use ls -tr instead, just haven't got around to doing it and testing it ...

  12. #12
    Member
    Join Date
    Dec 2008
    Posts
    81

    Default

    I'm gonna test it out.

    First thing I noticed is, if you have your backup folder in another location, you need to make a change to the CD command.

    I inserted a variable at the top, although it would be nice if I could pull that variable fromwhere cpanel saves the tweaks data.

Similar Threads & Tags
Similar threads

  1. /scripts/cpbackup not work
    By Grzeslaw in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-24-2008, 01:13 PM
  2. /scripts/cpbackup --force
    By benfish in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-17-2007, 07:29 AM
  3. /scripts/cpbackup
    By circlec in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-07-2004, 03:49 AM
  4. /scripts/cpbackup problem
    By aeroweb in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-06-2004, 11:53 AM
  5. scripts- cpbackup
    By anish sidhan in forum Themes and Branding
    Replies: 1
    Last Post: 01-02-2004, 11:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube