?

Log in

No account? Create an account

April 13th, 2004


Previous Entry Share Next Entry
04:02 pm
hey all, I need some suggestions.
I'm running Fedora core 1 on a webserver, and I need a backup-to-disk solution.
ideally: a few days worth of archive to go back to if something goes wrong, and potential catastrophic recovery data.

Boxen's got two identical 80gb hard drives, all file systems are ext3.
hda is partitioned into the working system:
/boot = 100mb
/ = 10gb
/home = 65gb
swap

hdc is /backup, and is only going to be mounted when it needs to be used.

If necessary, I can reinstall (again) and use LVM to do snapshots, which from what I've heard might be ideal for what I'm trying to do.
But I've had trouble finding good info (aka detailed howto's) on that online, so i'm wary of just diving into it. (can you use LVM on existing partitions? If so, that'd be easy.)

so, what are some recomendations?
I've tried flexbackup(.sourceforge.net), and it was ugly (and didn't work to restore files). I've looked at bacula and amanda, both are way too complex for what I'm trying to do.
I've considered tar.gz-ing files with a script, and it's a little simplistic.
rsync would work, but that's just a mirror of the drive. would be ok, but I'd rather have a backup solution instead of a mirroring solution.


*edit* finally found a good LVM howto: http://ds9a.nl/lvm-howto/HOWTO/cvs/lvm-howto/output/lvm-howto-7.html
that's back in as an option now. instant snapshots are nice.
also: official howto: http://tldp.org/HOWTO/LVM-HOWTO/

*edit2* hmm, "Please note that snapshots are not persistent. If you unload LVM or reboot, they are gone, and need to be recreated."
So take snapshot, mount it, tar (& gzip?) it, shoot it to /backup with an appropriate filename, remove&umount snapshot...?

(3 bits of drivel | babble incoherently)

Comments:


[User Picture]
From:dfitzpat
Date:April 13th, 2004 03:07 pm (UTC)
(Link)
i see you've gotten some feedback already from a few other people... but i figured having another suggestion wouldnt kill you.

i achieved what you're seeking via a perl script. essentially assigned the yyyymmdd variable as the filname, dumped the raw content of what i wanted a backup of to a yyyymmdd.tar.gz file, then copied that file to another server (via smbclient). then i calculated back from the current date 15 days, and deleted anything older than that via the "find filename -mtime +15 -exec rm {} \;"

KISS at its best.
From:nata5
Date:April 13th, 2004 05:59 pm (UTC)
(Link)
Let me know how you work this out. I've been trying to play with backs on personal and prod servers for a while. Right now I have a script that runs every night and does a huge tar ball. Very nasty but works for the most part.
[User Picture]
From:inahandbasket
Date:April 13th, 2004 07:32 pm (UTC)
(Link)
turns out rsync is a lot more powerful than I'd given it credit for.
incremental backups and everything.
http://www.mikerubel.org/computers/rsync_snapshots/
hey all, I need some suggestions. I'm running Fedora core 1 on a… - another LJ. or: how i learned to stop worrying and love this life-thingy

> Recent Entries
> Archive
> Friends
> Profile
> Lord Google

Links
sluggy
userfriendly
sinfest
schlock
reallife
Cyanide&Happiness
goats
somethingpositive
pvp
xkcd
lil gamers
fruitfucker
ctrl-alt-del
Genius!
digger
LFG
applegeeks
threepanelsoul
drive!
vgcats
Erfworld
Freakangels
DresdenCodak
Angst!
.
EatYourBeer
rain?
POSTULATE!

> Go to Top
LiveJournal.com