#1 (permalink)  
Old 06-11-2009, 06:43 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-11-2009, 06:52 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-12-2009, 10:19 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-12-2009, 11:12 AM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
Thats awesome, how about switching the method to scp from ftp?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-12-2009, 08:35 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-15-2009, 03:24 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
bump? Still stuck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-16-2009, 02:38 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
Goin with r1soft
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-16-2009, 03:02 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-17-2009, 02:21 AM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-18-2009, 11:37 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bad backup method !!! Lion4H cPanel and WHM Discussions 4 09-28-2005 09:21 AM
Preferred Backup Method neonix cPanel and WHM Discussions 5 08-03-2005 01:47 PM
Complete Backup method ? SecondSight cPanel Newbies 13 09-22-2004 01:31 AM
Backup method has changed ? pfiev cPanel and WHM Discussions 0 06-28-2004 09:57 PM
Any simple method to do System Backup and Restore ccto cPanel and WHM Discussions 0 07-31-2003 10:18 PM


All times are GMT -5. The time now is 02:20 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc