#gentoo - Thu 5 Apr 2007 between 22:41 and 22:53

NY Lost Funds



kojirofor local copy, cp -a is probably faster than rsync
Draconx|Laptopbacking up a live system in that way may not be perfect, either.
kojirofor remote copy, rsync is probably faster :)
g2useryeah, what Fieldy and kojiro said
Draconx|Laptopwatch out for /proc and /sys, also.
LoneWlf794Okay, I assume gentoo-wiki will have a nice pretty rsync article for me.
kojiroLoneWlf794: man rsync is pretty good :P
Fieldyyeah you'll want to --exclude /proc --exclude /sys --exclude /dev --include /dev/null --include /dev/console and so on
g2userIf it's a root partition there will almost certainly be issues with special files
Fieldyrsync will handle them flawlessly, which is why i mentioned it
;p
Draconx|Laptopcopying special files is ok
g2userFieldy: good to know.
Draconx|Laptopcopying "normal" files like /proc/kcore is where it gets you.
LoneWlf794So, any files I should exclude in my rsync setup server-side?
tdrmkdir /mnt/fake_root ; mount --bind / /mnt/fake_root; cd /mnt/fake_root; tar cpf ../slash.tar ./* --exclude mnt/*
Fieldyhence the --excludes above :)
Draconx|Laptopyeah bindmounting is a handy way to avoid all the proc, sys, etc issues.
but also keep in mind the potential inconsistencies that may result from running a backup like this on a live filesystem.
tdrpid kill your users first :)
LoneWlf794Okay, screw it, I'm stopping my database and apache, running my backup script, copying the backups to this system, and re-installing from scratch.
Tambuon bootup when it says Checking all filesystems ... I get the message fsck.ext3: no such file or directory while trying to open /mnt/hdd the complains about the superblock and asks me to do a manual repair using e2fsck I've run fdsk on my reiser /dev/hdc3 and it came out without a problem. Any thoughts what i am missing?
LoneWlf794Be back in a few.
Fieldyhere's how i pull this off. 1) boot a livecd of some sort 2) mount the old stuff 3) mount the destination 4) rsync -aP --exclude /dev --include /dev/null --include /dev/console --exclude /proc --exclude /sys --exclude /mnt oldplace newplace
g2userLoneWlf794: there you go
I assumed you didn't have your data partitioned off nicely
LoneWlf794I don't really.
I just made a bash script that makes some tarballs for me of my database, apache files, etc.
g2userI'd backup your data, try the one of the methods above (just for the experience) and if it doesn't work, reinstall from scratch
LoneWlf794Mkay.
shiznixTambu, 'emerge sys-fs/e2fsprogs'
g2useryou're lucky you only have a couple gigs of data :)
Tambushiznix thats whats weird I have them already I can run them.. I just tried running the e2fsck on my /dev/hdc1 and it found some errors it fixed but on reboot came up with the same error.
LoneWlf794g2user: Indeed.
g2user: I'm only doing this cause I found a couple of bad blocks on one of the drives.
Anyone wanna donate a 36.4GB SCSI drive? ;)
invsblduckokay... is there some command to update the gnome-panel menus
Tambushiznix: sigh I think I know the problem.. I have a drive specified in my fstab that isn't in the sytem anymore.. gimme a sec
invsblducki usually never use desktop environment crap, and i'm definitely not seeing the value at the moment!
g2userwhy isn't --deep the default behavior for emerge? It seems to me that in nearly all cases you'd want to compile a packages prerequisites before the packages itself no?

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101 108 115 122 129 136 143 150 157 164 171 178 

IrcArchive

NY Lost Funds