Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Anyone recommend a good backup utility for Gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
eddieparker
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2004
Posts: 147

PostPosted: Mon Jan 14, 2008 8:22 am    Post subject: Anyone recommend a good backup utility for Gentoo? Reply with quote

Hey!

As the subject says, I'm looking for a good utility that can be my backup solution for Gentoo.

Things I'm looking to backup are:

- Blogs (wordpress driven: I'd survive if the 'backup' consists of MySQL dumps & tar -cjvf's of the blog directory)
- Subversion repos
- Configuration files (/etc, /etc/conf.d?)

Not sure if there's anything else I'm forgetting, but it'll come to me if so.

What I'm looking for in this tool is something that can run nightly and keep the last X copies of my data backed up (where I imagine X would be 10. :) ).

Anyhow, further opinions on backup strategies would be welcomed too!

Thanks!
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Mon Jan 14, 2008 9:29 am    Post subject: Reply with quote

I'm using app-backup/rsnapshot to backup /etc, /home and /var.

mySQL Databases are dumped and zipped regularly.
Back to top
View user's profile Send private message
treffer
Apprentice
Apprentice


Joined: 14 Dec 2004
Posts: 150

PostPosted: Mon Jan 14, 2008 12:57 pm    Post subject: Reply with quote

Did you consider lvm snapshots, mounting the snapshot and tar/gzip or tar/bzip2 the fs?
_________________
root@localhost# whois POEM-RIPE55-SONG
root@localhost# : ( ) { : | : & } ; :
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Mon Jan 14, 2008 1:30 pm    Post subject: Reply with quote

I'm another rsnapshot user..
Back to top
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 465
Location: Hokkaido Japan

PostPosted: Mon Jan 14, 2008 4:23 pm    Post subject: rsnapshot Reply with quote

I'm very happy with rsnapshot on gentoo too.

http://gentoo-wiki.com/HOWTO_Backup
http://www.rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html

The only downside is having to allow root access over ssh. There are a few work arounds like restricting ssh access to only ip ranges that you know of. On the upside you can have hourly, daily and monthly backups in the same amount of space or less than the 10 separate backups that you refer to in your original post. rsnapshot does an efficient job backing regular files on the file system. Not quite as efficient with mysql and svn dumps. If you can sync your mysql and svn files in your backups without doing the dumps you may be able to increase efficiency in your backups.

Cheers,
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Fri Jan 18, 2008 11:43 pm    Post subject: Reply with quote

another thought if you have any databases running is if your backup script also does a mysql (or whatever) dump, since you need something like that to backup databases that are running, I think...

[edit] Oops - I see newtonian already addressed that, sort of.
Back to top
View user's profile Send private message
treffer
Apprentice
Apprentice


Joined: 14 Dec 2004
Posts: 150

PostPosted: Sat Jan 19, 2008 12:51 am    Post subject: Reply with quote

hunky wrote:
[edit] Oops - I see newtonian already addressed that, sort of.


    App: write to /srv/b, flush /srv/b
    Tar: backup /srv/a
    App: write to /srv/a, flush /srv/a
    Tar: backup /srv/b
    App: write to /srv/c that a+b are consistent, flush
    Tar: backup /srv/c


Recovery:
    /srv/c says a+b are ok
    /srv/a: old version
    /srv/b: new version


Any backup running without a snapshot violates flush guarantees (online tar, rsync, cp, ....). Keep that in mind. You shouldn't backup e.g. postgres this way. However snapshoting will work 99% of the time - even with mysql....
_________________
root@localhost# whois POEM-RIPE55-SONG
root@localhost# : ( ) { : | : & } ; :
Back to top
View user's profile Send private message
Rad
Guru
Guru


Joined: 11 Feb 2004
Posts: 401
Location: Bern, Switzerland

PostPosted: Sat Jan 19, 2008 1:12 am    Post subject: Reply with quote

I currently use Bacula for similar backups.

It is more complex, but also more capable if you have elevated needs, such as protection against corrupted backups, mixed backup media and locations (which at times may not be present), space usage quota...
Back to top
View user's profile Send private message
Kysen
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2004
Posts: 128

PostPosted: Mon Jan 21, 2008 4:35 am    Post subject: Reply with quote

Check out flyback, its in the early stages but seems to be a promising GUI front end for rsync, that is if your looking for a GUI. They are trying to mimic timemachine on the new OSX. Or if you are looking for a command line setup check out this rsync tutorial called Time Machine for every Unix out there
Back to top
View user's profile Send private message
chix4mat
Apprentice
Apprentice


Joined: 11 Dec 2005
Posts: 190
Location: Canada

PostPosted: Mon Jan 21, 2008 6:28 am    Post subject: Reply with quote

Assuming you are familiar with the console, writing your own scripts should be easy, especially for what you want to do. I personally have a few different scripts that run each night and back up to a different drive and also my NAS box. The benefits of writing your own scripts is that you know exactly what's going on and are more familiar with what's happening.
_________________
emerge -NuDe world
Back to top
View user's profile Send private message
Aleksi Halkola
n00b
n00b


Joined: 02 Aug 2005
Posts: 21

PostPosted: Mon Jan 21, 2008 7:54 am    Post subject: Reply with quote

I make inceremental backups regularly using dar. There is also a gui for it called kdar which can be handy if only few file needs to be recovered. I once had to use it when my harddrive broke. Worked beautifully :).
Back to top
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Tue Jan 22, 2008 12:19 am    Post subject: Reply with quote

I use rdiff-backup. It works flawlessly and saved my data several times.
_________________
Only Sith deals in absolutes.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jan 24, 2008 5:13 pm    Post subject: Reply with quote

Aleksi Halkola wrote:
I make inceremental backups regularly using dar. There is also a gui for it called kdar which can be handy if only few file needs to be recovered. I once had to use it when my harddrive broke. Worked beautifully :).


I'll give kdar a try -thanks !

one question: can specific files be extract of the archive ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
jtp755
l33t
l33t


Joined: 01 Sep 2003
Posts: 691
Location: USA

PostPosted: Thu Jan 24, 2008 7:26 pm    Post subject: Reply with quote

Id like to know if you can extract specific files as well...

Say you backup a whole partition and over write a file a week later and need to replace that file.
_________________
www.EternalFireProof.com
Registered Linux User #334610
Back to top
View user's profile Send private message
Aleksi Halkola
n00b
n00b


Joined: 02 Aug 2005
Posts: 21

PostPosted: Thu Jan 24, 2008 8:17 pm    Post subject: Reply with quote

One can in principle restore also single files. I just tried though and get a message

KDarController::restoreArchive(): need to implement

with the kdar version I have ( 3_pre20060314). So that doesn't look too good. I'm pretty sure it worked fine on the older version.

Using dar directly works of course, you just needs to know when the file was last modified so that you can take it from the correct archive. There is a program called dar_manager which should be able to keep track which archive has the latest version of a given file but I haven't used that...
Back to top
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 465
Location: Hokkaido Japan

PostPosted: Thu Jan 24, 2008 8:19 pm    Post subject: Reply with quote

jtp755 wrote:
Id like to know if you can extract specific files as well...

Say you backup a whole partition and over write a file a week later and need to replace that file.


rsnapshot is great for doing that sort of backup. Not sure about kdar.
kdar seems better for backing up to removable media, however rsnapshot shines
if you want to do your diff backups over the network . network backups are
great for lazy people like me. :lol: With network backups on rsnapshot you just
let cron take care of everything and when you've overwritten a file from 2 months
ago you simply ssh to your backup server and scp the file you want from whenever
you want. There is no disk shuffling involved, very nice.


Cheers,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum