Current time: 12-23-2024, 03:47 AM Hello There, Guest! (LoginRegister)


Post Reply 
Server Backup Strategies Imaging & tarballs
Author Message
ShinZan Offline
Junior Member
*

Posts: 43
Joined: Aug 2008
Reputation: 0
Post: #1
Server Backup Strategies Imaging & tarballs
So I have my new 1.07 server running and the hard drive is a 1tb SATA

in the olden days with 1.0 i would make an acronis image of the server and also keep tar balls of the home directories (which of course had the database backups as well)

I wish i had this going on a VMWare box but i don't....

So anywho i try to make my initial backup with Acronis and 1 hour later its still plunking along and doesnt look like its going to end anytime soon. So i try acronis 9, 10, 11, but not 12 since i dont have that version.

all 3 versions are either crapping out or taking forever. its the same hardware as the 1.0 server (same server actually) the only difference is a 1tb hard drive vs 250gb.

So my question to the community is: how are you guys backing up and what are the best options? For instance could i simply tarball the whole data partition and reinstall ubuntu from scratch do the apt-get for all the packages and then untar that archive back putting back /etc /var /home etc etc and then my server would essentially "be back" I'm trying to wrap my head around best practices for backing up linux and ispomega in light of acronis no longer really being an option. I can tar up and move stuff off via scp or a cron easily but taking the server offline for 2 3 4 hours plus to back it up doesn't seem like an option.

When acronis took 14 minutes to backup the whole server life was good now not so much.

Thanks for listening

David
03-01-2012 02:00 PM
Find all posts by this user Quote this message in a reply
ShinZan Offline
Junior Member
*

Posts: 43
Joined: Aug 2008
Reputation: 0
Post: #2
RE: Server Backup Strategies Imaging & tarballs
No one has any non vmware backup strategies?
03-09-2012 12:35 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: Server Backup Strategies Imaging & tarballs
There are a lot of possibilities - the right solution tightly depends on your possibilities + knowhow.

dd -> to make a 1:1 copy of a disk or partition
tar -> originally for tape archive but also good to make backups
rsync -> the power tool for making backups and archives (eg. rsnapshot)

but for rsync (and tar) you need to be sure which folders you need to safe/sync.
E.g. normally /usr is not needed to be backupped. /var/log depends on you...
etc etc... you have to decide.

A not bad start may be /etc, /var and maybe /root - if you also have a list of installed packages, then with theese infos it's not to difficult to setup a new machine with the same config+data.

But /var/lib/mysql: you better make db dumps, otherwise you would need to stop the DB while syncing or saving theese files....

/J
03-09-2012 03:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ShinZan Offline
Junior Member
*

Posts: 43
Joined: Aug 2008
Reputation: 0
Post: #4
RE: Server Backup Strategies Imaging & tarballs
(03-09-2012 03:06 AM)joximu Wrote:  There are a lot of possibilities - the right solution tightly depends on your possibilities + knowhow.

dd -> to make a 1:1 copy of a disk or partition
tar -> originally for tape archive but also good to make backups
rsync -> the power tool for making backups and archives (eg. rsnapshot)

but for rsync (and tar) you need to be sure which folders you need to safe/sync.
E.g. normally /usr is not needed to be backupped. /var/log depends on you...
etc etc... you have to decide.

A not bad start may be /etc, /var and maybe /root - if you also have a list of installed packages, then with theese infos it's not to difficult to setup a new machine with the same config+data.

But /var/lib/mysql: you better make db dumps, otherwise you would need to stop the DB while syncing or saving theese files....

/J

Thanks Joximu and to clarify If i backup /etc /var /log (optional) and /root and then reinstall ubuntu on a new machine and put back these 3 directories i will have a restored machine?

David
03-13-2012 03:57 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Server Backup Strategies Imaging & tarballs
well - there's one file that installs ispcp on /usr - you need to copy it when doing a restore.
-> /usr/sbin/maillogconvert.pl

But otherwise: I'd say yes - with /etc/, /root and /var - you're able to restore everything. MySQL-Data: better make dumps or stop mysql during backing up with tar...

And Restore: use same distribution... of course.... :-)
03-13-2012 08:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #6
RE: Server Backup Strategies Imaging & tarballs
Good choice as well :

put /var/www on a Logical Volume and create Snapshots on a regular base ( and delete old ones of course Wink) ..
03-13-2012 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: Server Backup Strategies Imaging & tarballs
(03-13-2012 06:48 PM)ephigenie Wrote:  Good choice as well :

put /var/www on a Logical Volume and create Snapshots on a regular base ( and delete old ones of course Wink) ..

Ok, then you have the Websites with the nightly backups of the customer databases (if enabled). You don't have the current databases or the mysql db of mysql.
You don't have the mails and you don't have /etc which I personally don't want to miss in a backup.

/J
03-13-2012 11:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ShinZan Offline
Junior Member
*

Posts: 43
Joined: Aug 2008
Reputation: 0
Post: #8
RE: Server Backup Strategies Imaging & tarballs
(03-13-2012 11:19 PM)joximu Wrote:  
(03-13-2012 06:48 PM)ephigenie Wrote:  Good choice as well :

put /var/www on a Logical Volume and create Snapshots on a regular base ( and delete old ones of course Wink) ..

Ok, then you have the Websites with the nightly backups of the customer databases (if enabled). You don't have the current databases or the mysql db of mysql.
You don't have the mails and you don't have /etc which I personally don't want to miss in a backup.

/J

I like the physical volume idea and to round it out it seems it should be:

/etc
/root
/var
/usr/sbin/maillogconvert.pl

and then resotre using the same distro copy all this stuff back and I'm good to go. That seem right?

David
03-14-2012 01:03 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: Server Backup Strategies Imaging & tarballs
Should be fine.

But better you learn some linux knowledge so you can proove it.... :-)

/J
03-14-2012 09:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ShinZan Offline
Junior Member
*

Posts: 43
Joined: Aug 2008
Reputation: 0
Post: #10
RE: Server Backup Strategies Imaging & tarballs
(03-14-2012 09:36 AM)joximu Wrote:  Should be fine.

But better you learn some linux knowledge so you can proove it.... :-)

/J

Well said, I'm getting there, I have a mirrored piece of hardware (another Dell Poweredge Blade) and I will be trying out this exact restore strategy so we aren't learning the day of the disaster Smile

I'm mostly a microsoft technologies guy and programmer, but I've started getting into linux more and more including branching out into PHP programming quite a bit more and I appretiate your help and guidance Joximu, Thank you very much.

David
03-14-2012 12:22 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: