Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default Different backup method?

    I wanted to know if its possible to modify the backups in a way that if the site is no longer on the server, the backup files will be deleted.

    Can I make it like.. delete the daily, THEN do the backup?

  2. #2
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    I saw this
    PHP Code:
    if ( $CONF{'PREBACKUP'} && -'/scripts/precpbackup' && -x _ ) {
        print 
    "[cpbackup] Executing user defined pre backup script (/scripts/precpbackup).\n";
        
    system '/scripts/precpbackup';

    In the cpbackup.... That doesnt exist, if I make it, will it run before the backup?

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    I saw this
    PHP Code:
    if ( $CONF{'PREBACKUP'} && -'/scripts/precpbackup' && -x _ ) {
        print 
    "[cpbackup] Executing user defined pre backup script (/scripts/precpbackup).\n";
        
    system '/scripts/precpbackup';

    In the cpbackup.... That doesnt exist, if I make it, will it run before the backup?
    Creating /scripts/precpbackup, yes - if created, it will run before the backup generation begins.

    Here's a link to all post- scripts that can be created for a cPanel/WHM environment:

    ScriptHooks < AllDocumentation < TWiki

    Also, for every post- script, you can also create a pre- script.

  4. #4
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Thats awesome, how about switching the method to scp from ftp?

  5. #5
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    I created /scripts/precpbackup With this in it

    PHP Code:
    #!/bin/bash
    rm -rf /backup/cpbackup/daily/
    mkdir /backup/cpbackup/daily/
    exit 

    Didnt do a damn thing.. any idea?

  6. #6
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    bump? Still stuck

  7. #7
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Goin with r1soft

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    I created /scripts/precpbackup With this in it

    PHP Code:
    #!/bin/bash
    rm -rf /backup/cpbackup/daily/
    mkdir /backup/cpbackup/daily/
    exit 

    Didnt do a damn thing.. any idea?
    Hmm, I recommend submitting a support ticket so we can diagnose this: http://tickets.cPanel.net/submit

  9. #9
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Hmm, I recommend submitting a support ticket so we can diagnose this: http://tickets.cPanel.net/submit
    well I kinda see whatsup, the PREBACKUP needs to be added to the backup config, AND have a value... I think -1 means off... so does 1 mean on? Didnt do it.

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    well I kinda see whatsup, the PREBACKUP needs to be added to the backup config, AND have a value... I think -1 means off... so does 1 mean on? Didnt do it.
    I spoke with some of our technical analysts and they recommended submitting a support ticket so we can determine why the backup script isn't working on your server.

Similar Threads & Tags
Similar threads

  1. best backup method
    By wgalafassijr in forum Data Protection
    Replies: 3
    Last Post: 01-12-2011, 07:43 PM
  2. Bad backup method !!!
    By Lion4H in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-28-2005, 08:21 AM
  3. Preferred Backup Method
    By neonix in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-03-2005, 12:47 PM
  4. Complete Backup method ?
    By SecondSight in forum Data Protection
    Replies: 13
    Last Post: 09-22-2004, 12:31 AM
  5. Backup method has changed ?
    By pfiev in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-28-2004, 08:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube