#1 (permalink)  
Old 06-08-2009, 04:31 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
Enable both remote and local backups?

Hey, I have 2 questions about the backups..

1) Is it possible to enable both remote and local backups?

2) Is it possible to change the remote backup from FTP to SCP?

If no for both, does anyone know of any good backup scripts?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-08-2009, 08:12 PM
cPanelEricE's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2007
Location: Texas
Posts: 170
cPanelEricE is on a distinguished road
I love backups, alot. I backup locally on my personal machine and sync those back files to another machine using a custom script I wrote.

The hook for postbackup found here: ScriptHooks < AllDocumentation < TWiki will execute after your backup is done. You can use those to sync via what ever means you'd like. I recommend rsync over ssh using publickeys.
__________________
--Eric(E)

Using Enkompass compared to cPanel is like going to a MacDonald’s in France, sure they’ve got the same things we have over here, but it’s a little different.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-09-2009, 02:36 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
Quote:
Originally Posted by cpanelerice View Post
I love backups, alot. I backup locally on my personal machine and sync those back files to another machine using a custom script I wrote.

The hook for postbackup found here: ScriptHooks < AllDocumentation < TWiki will execute after your backup is done. You can use those to sync via what ever means you'd like. I recommend rsync over ssh using publickeys.
I have never used rsync, do you have any good tutorials? I would love to try it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-10-2009, 11:33 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
That's exactly the method I use for all of our servers. Many moons ago I posted the following:
http://forums.cpanel.net/f7/rsync-ta...tml#post279060
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-10-2009, 04:54 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
Quote:
Originally Posted by chirpy View Post
That's exactly the method I use for all of our servers. Many moons ago I posted the following:
http://forums.cpanel.net/f7/rsync-ta...tml#post279060
That looks pretty good, I think I might try it.

Can you explain what the parts in bold do?
Quote:
rsync --delete --stats -vae ssh /backup/cpbackup/daily remote@remote.server.com/backup/server
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-10-2009, 05:23 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
--delete removes files from the destination that no longer exist at the source
--stats provides statistics at the end of the rsync
-v verbose
-a archive mode
-e specifies the remote shell to use (ssh in this case)
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-10-2009, 11:58 PM
Registered User
 
Join Date: Dec 2008
Posts: 141
jhyland87 is on a distinguished road
So is it possible to make the backup run in SCP and not FTP? Ftp is so slow
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-11-2009, 11:30 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
So is it possible to make the backup run in SCP and not FTP? Ftp is so slow
SCP is not natively supported for full server backups at this time.
__________________
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-11-2009, 12:42 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
I also very much doubt SCP will be faster that FTP since the data has to be encrypted and then decrypted as it is transferred.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-29-2009, 05:15 PM
Registered User
 
Join Date: Jun 2009
Posts: 1
mediakreativ is on a distinguished road
Hello there,

that seems to be a good solution for me - i have a rootserver with an FTP backupspace (not possible for rsync).

In WHM configuration it says "Remote FTP - Accounts only" - does that mean that databases are not included? Or is there a possibility to backup the complete WHM settings?

But even if thats not possible the double backup (one local, afterwards transfered via FTP) would be fine, because then its possible to choose an incremental backup, right?

Which method would you recommend for doing the FTP backup then? As i understand the second backup could be started with postcpbackup - so postcpbackup would start a backupscript, right? Any recommendations for a good working script?

Would be great if somebody could give me advice - maybe somebody has used the WHM backup/FTP backup combination too?

Kind regards,

Christian
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
How to enable remote shell access jayapalchandran cPanel Newbies 1 10-03-2008 08:10 AM
Local DNS, first mx remote and second mx local Tagor cPanel and WHM Discussions 1 04-04-2006 12:41 AM
configure enable-local-infile Allis cPanel and WHM Discussions 0 09-30-2004 12:20 PM
HOW TO: Enable MySQL remote access? Roberto cPanel and WHM Discussions 3 04-09-2004 08:13 PM
Local->Local->Forward to Remote: Forward doesn't work payne cPanel and WHM Discussions 3 08-26-2003 11:14 AM


All times are GMT -5. The time now is 10:39 AM.


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