View previous topic :: View next topic |
Author |
Message |
eddieparker Tux's lil' helper
Joined: 09 Sep 2004 Posts: 147
|
Posted: Mon Jan 14, 2008 8:22 am Post subject: Anyone recommend a good backup utility for Gentoo? |
|
|
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 |
|
|
elgato319 Guru
Joined: 15 Sep 2005 Posts: 546
|
Posted: Mon Jan 14, 2008 9:29 am Post subject: |
|
|
I'm using app-backup/rsnapshot to backup /etc, /home and /var.
mySQL Databases are dumped and zipped regularly. |
|
Back to top |
|
|
treffer Apprentice
Joined: 14 Dec 2004 Posts: 150
|
Posted: Mon Jan 14, 2008 12:57 pm Post subject: |
|
|
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 |
|
|
pdr l33t
Joined: 20 Mar 2004 Posts: 618
|
Posted: Mon Jan 14, 2008 1:30 pm Post subject: |
|
|
I'm another rsnapshot user.. |
|
Back to top |
|
|
newtonian Guru
Joined: 19 Jan 2005 Posts: 465 Location: Hokkaido Japan
|
Posted: Mon Jan 14, 2008 4:23 pm Post subject: rsnapshot |
|
|
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 |
|
|
hunky l33t
Joined: 19 Nov 2003 Posts: 910 Location: Alaska
|
Posted: Fri Jan 18, 2008 11:43 pm Post subject: |
|
|
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 |
|
|
treffer Apprentice
Joined: 14 Dec 2004 Posts: 150
|
Posted: Sat Jan 19, 2008 12:51 am Post subject: |
|
|
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 |
|
|
Rad Guru
Joined: 11 Feb 2004 Posts: 401 Location: Bern, Switzerland
|
Posted: Sat Jan 19, 2008 1:12 am Post subject: |
|
|
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 |
|
|
Kysen Tux's lil' helper
Joined: 26 Nov 2004 Posts: 128
|
Posted: Mon Jan 21, 2008 4:35 am Post subject: |
|
|
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 |
|
|
chix4mat Apprentice
Joined: 11 Dec 2005 Posts: 190 Location: Canada
|
Posted: Mon Jan 21, 2008 6:28 am Post subject: |
|
|
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 |
|
|
Aleksi Halkola n00b
Joined: 02 Aug 2005 Posts: 21
|
Posted: Mon Jan 21, 2008 7:54 am Post subject: |
|
|
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 |
|
|
Non_E Apprentice
Joined: 17 Jan 2006 Posts: 160 Location: Czech Republic
|
Posted: Tue Jan 22, 2008 12:19 am Post subject: |
|
|
I use rdiff-backup. It works flawlessly and saved my data several times. _________________ Only Sith deals in absolutes. |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
jtp755 l33t
Joined: 01 Sep 2003 Posts: 691 Location: USA
|
Posted: Thu Jan 24, 2008 7:26 pm Post subject: |
|
|
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 |
|
|
Aleksi Halkola n00b
Joined: 02 Aug 2005 Posts: 21
|
Posted: Thu Jan 24, 2008 8:17 pm Post subject: |
|
|
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 |
|
|
newtonian Guru
Joined: 19 Jan 2005 Posts: 465 Location: Hokkaido Japan
|
Posted: Thu Jan 24, 2008 8:19 pm Post subject: |
|
|
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. 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 |
|
|
|