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 7th November 2006, 01:58
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complete automated backup task

Could you help me, I just installed my server with Ubuntu 6.10 with the perfect setup. I installed a second hard drive on my server. (Primary is 20 GO and second 8GO) I want to syncronise a backup each week of the ISPConfig preference, my hosted websites and my MySQL databases.

I know that cron would be useful for that but i'm new to Linux. Could you explain me how to do it with exemple, with the importants path to backup?

Thank you
Reply With Quote
Sponsored Links
  #2  
Old 7th November 2006, 11:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

I would recommend you to make a full backup of the first harddive with e.g rsync or rsync-backup to the second drive.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th November 2006, 13:19
antoinel12 antoinel12 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So could I compress the image beacause I have less space on my second hd?
Reply With Quote
  #4  
Old 7th November 2006, 13:27
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,145
Thanks: 4
Thanked 55 Times in 51 Posts
Default

If you always want a new backup you can compress the backup...
However if you want backups over multiple weeks then compression is not an option - then you rather make use of hardlinks and "save" diskspace that way.
Reply With Quote
  #5  
Old 8th November 2006, 17:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

You can find some interesting tutorials here: http://www.howtoforge.com/taxonomy_menu/1/34
__________________
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
  #6  
Old 9th November 2006, 17:07
statiic statiic is offline
Senior Member
 
Join Date: Oct 2006
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just looked into the tutorials, but I couldnt find an tutorial which explains how to make backups on an second harddrive.

They all use an second server. This will be done in the future, but for now its no option.
Reply With Quote
  #7  
Old 9th November 2006, 19:41
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,145
Thanks: 4
Thanked 55 Times in 51 Posts
Default

Well, making backups on another harddrive is a lot easier then making them on another server as you need to establish some kind of authorization...

With rSync this is quite easy:

rsync -switches FROM TO

e.g. rsync -apvz --delete /srv /media/hdb5

This will run rsync and make a copy of the /srv folder into the /media/hdb5 partition.

Of course you can in a shell script - for more security - mount that harddrive first and at the end unmount it... you could make incremental backups...

My point is that making backups on the same machine can be accomplished (with most tool) quite easily but if you want to make backups remotely that includes a bit more and hence normally you will find a howto about remote backups since that includes also local backups then.
Reply With Quote
  #8  
Old 9th November 2006, 21:44
statiic statiic is offline
Senior Member
 
Join Date: Oct 2006
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So what do you suggest?

I have the perfect setup installed. So I need to backup a lot. I would say backup the whole drive instead of figuring out which file I need to backup.

And the second line you wrote with the delete in it. Whats that for? Does it delete anything?
Reply With Quote
  #9  
Old 10th November 2006, 16:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Quote:
Originally Posted by statiic
And the second line you wrote with the delete in it. Whats that for? Does it delete anything?
If you delete a file on the first hard disk, rsync will also delete it in your backup if you use this option.
__________________
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
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 10:07
Automated backup of sites (& db's) to smb:// share woleium General 21 12th November 2006 16:03
automated backup pattech General 3 3rd November 2006 11:15
Automated backup MathieuMa General 1 13th April 2006 08:33
How of create an automated backup of system+files jeremy Installation/Configuration 13 25th February 2006 13:23


All times are GMT +2. The time now is 21:42.


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