Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd October 2006, 14:23
woleium woleium is offline
Junior Member
 
Join Date: Sep 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Question Automated backup of sites (& db's) to smb:// share

Has anyone written a script to perform automatic nightly backup of sites, complete with db's? Ideally it would perform an rdiff's and allow for versional restores (i.e. restore site to state from a week last thursday)

If not then I'd be happy to help writing one. If i get the script set up and working & running from a config file perhaps spmeone could integrate it into the gui?
Reply With Quote
Sponsored Links
  #2  
Old 23rd October 2006, 15:31
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts
Default

Well, I have written an incremental snapshot-style backup howto with rsync

However there is no snapshot-style backup howto for rdiff yet - but Falko has written a guide on howto mirror a site with rdiff. Maybe you can use this as base for your howto with rdiff
Reply With Quote
  #3  
Old 23rd October 2006, 16:04
woleium woleium is offline
Junior Member
 
Join Date: Sep 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Cool,

Thanks sjau.

your tutorial:
http://www.howtoforge.com/rsync_incr...apshot_backups

Falco's rdiff tutorial:
http://www.howtoforge.com/linux_rdiff_backup

I'll have a play tonight & see what i can come up with.
Reply With Quote
  #4  
Old 23rd October 2006, 16:48
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
Default

woleium,

If you ever get it going I would love to have a copy of that script :-)
Reply With Quote
  #5  
Old 23rd October 2006, 17:20
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts
Default

btw, my tutorial can be simply changed to make backups on local media also.. then you won't even need the SSH part
Reply With Quote
  #6  
Old 24th October 2006, 11:32
sajo sajo is offline
Member
 
Join Date: Oct 2006
Posts: 42
Thanks: 4
Thanked 1 Time in 1 Post
Default

Can you explain how to, for us newbies.
Thanks for great job
Reply With Quote
  #7  
Old 24th October 2006, 21:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by sajo
Can you explain how to, for us newbies.
Thanks for great job
What exactly is the problem? To which tutorial are you referring?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 24th October 2006, 21:49
sajo sajo is offline
Member
 
Join Date: Oct 2006
Posts: 42
Thanks: 4
Thanked 1 Time in 1 Post
Default

Actualy there isn't any problems, yet.

I read this HOW TO http://www.howtoforge.com/rsync_incr...apshot_backups and its great and the SJAU say that this can be used also with local drives without SSH and I would love to know how to doit or what part of tutorial to skip or change. Because I intend to use second hard disk only for backup I need something for backing up the system.
Reply With Quote
  #9  
Old 24th October 2006, 23:33
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts
Default

just leave away the ssh part.... and rsync basically works like this

Code:
rsync FROM TO
this means you could do:

rsync /home /mnt/hdb1

Here's a couple more scripts
Reply With Quote
  #10  
Old 25th October 2006, 16:44
sajo sajo is offline
Member
 
Join Date: Oct 2006
Posts: 42
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Thanks so I can do

rsync /var/www /mnt/hdb1/backup
rsync /root/ispconfig /mnt/hdb1/backup
rsync /home/admispconfig /mnt/hdb1/backup
.
.
.
For every folder I need?
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
howto modify the built-in backup to only backup DBs Ovidiu Installation/Configuration 3 16th August 2006 13:42
Automated backup MathieuMa General 1 13th April 2006 09:33
How of create an automated backup of system+files jeremy Installation/Configuration 13 25th February 2006 14:23


All times are GMT +2. The time now is 10:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.