Re: [gentoo-user] back up gentoo system
2008/5/6 David <[EMAIL PROTECTED]>: > > Hi, > >I was thinking on making regular backup of my gentoo partition. I'm not > interested in incremental backups, just a mirror image of the root > filesystem. I've prepared some scripts using dd for the first copy and > rsync to keep it updated. How do you make your backups? > Any improvements?. > > Thanks in advance Hi, I use rdiff-backup. small, maybe fast, usable. I suggest to you look this site: http://gentoo-wiki.com/HOWTO_Backup András -- - - -- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando -- "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell z�b�� z{h���x%��
Re: [gentoo-user] back up gentoo system
>> If you're using 'dd' does that mean you're copying the entire filesystem >> and not just the files? I believe that can run you into some issues if the >> FS isn't read-only... > > What kind of issues? The idea is to copy the whole filesystem to another disk > and keep it sync. And in case of "crisis" use dd from the backup to the > original disk. dd does no error checking and is not usually suitable for backups of any kind unless you validate the output. find / -xdev | cpio -ov, *dump, or mkisofs -R would all be better ways to store recovery data than dd. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
On Mittwoch, 7. Mai 2008, David wrote: > On Tuesday 06 May 2008 23:54:08 Andrew MacKenzie wrote: > > +++ David [gentoo-user] [Tue, May 06, 2008 at 11:44:46PM +0200]: > > > Hi, > > > > > >I was thinking on making regular backup of my gentoo partition. I'm > > > not interested in incremental backups, just a mirror image of the root > > > filesystem. I've prepared some scripts using dd for the first copy and > > > rsync to keep it updated. How do you make your backups? > > > Any improvements?. > > > > I've used bacula in the past to do backups. It's very full featured but > > also rather complicated for simple backups. > > > > These days I use an rsync-based backup script I wrote called 'yarbs' (yet > > another rsync backup system). > > > > It uses rsync and hard links to keep X days of backups. Easy to use, > > easy to recover from, easy to setup. I can make it available if anyone's > > interested. > > > > If you're using 'dd' does that mean you're copying the entire filesystem > > and not just the files? I believe that can run you into some issues if > > the FS isn't read-only... > > What kind of issues? The idea is to copy the whole filesystem to another > disk and keep it sync. And in case of "crisis" use dd from the backup to > the original disk. Andrew has a point. dd is not a good choice. FS don't like it if some parts of them are in a different state than others. Also, with dd, everytime you restore, you also restore fragmentation - oh and a bigger partition? Can be tricky. There is nothing wrong with tar. In fact tar is great for this job. dd not. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
+++ David [gentoo-user] [Wed, May 07, 2008 at 12:18:58AM +0200]: > What kind of issues? The idea is to copy the whole filesystem to another disk > and keep it sync. And in case of "crisis" use dd from the backup to the > original disk. I should note I'm assuming you're backing up a mounted filesystem. If not then there's nothing wrong with dd. -- // Andrew MacKenzie | http://www.edespot.com // GPG public key: http://www.edespot.com/~amackenz/public.key // Whoever has lived long enough to find out what life is, knows how deep a debt // of gratitude we owe to Adam, the first great benefactor of our race. He // brought death into the world. // -- Mark Twain, "Pudd'nhead Wilson's Calendar" pgpIEB72Vd0Cg.pgp Description: PGP signature
Re: [gentoo-user] back up gentoo system
+++ David [gentoo-user] [Wed, May 07, 2008 at 12:18:58AM +0200]: > On Tuesday 06 May 2008 23:54:08 Andrew MacKenzie wrote: > > If you're using 'dd' does that mean you're copying the entire filesystem > > and not just the files? I believe that can run you into some issues if the > > FS isn't read-only... > What kind of issues? The idea is to copy the whole filesystem to another disk > and keep it sync. And in case of "crisis" use dd from the backup to the > original disk. There is the possibility that something changes on disk and you've already copied the 'references' to it in the journal or index. Thus making your image inconsistent or corrupted. You also have files cached in memory not yet written to disk, etc. It's also very inefficient copying all the empty parts of your file system as well. At the least you'll want to mount your file system read-only if you're going to use dd to make a copy. -- // Andrew MacKenzie | http://www.edespot.com // GPG public key: http://www.edespot.com/~amackenz/public.key // You have acquired a scroll entitled 'irk gleknow mizk'(n).--More-- // // This is an IBM Manual scroll.--More-- // // You are permanently confused. // -- Dave Decot pgp7WxODNz4zM.pgp Description: PGP signature
Re: [gentoo-user] back up gentoo system
On Tuesday 06 May 2008 23:54:08 Andrew MacKenzie wrote: > +++ David [gentoo-user] [Tue, May 06, 2008 at 11:44:46PM +0200]: > > Hi, > > > >I was thinking on making regular backup of my gentoo partition. I'm > > not interested in incremental backups, just a mirror image of the root > > filesystem. I've prepared some scripts using dd for the first copy and > > rsync to keep it updated. How do you make your backups? > > Any improvements?. > > I've used bacula in the past to do backups. It's very full featured but > also rather complicated for simple backups. > > These days I use an rsync-based backup script I wrote called 'yarbs' (yet > another rsync backup system). > > It uses rsync and hard links to keep X days of backups. Easy to use, easy > to recover from, easy to setup. I can make it available if anyone's > interested. > > If you're using 'dd' does that mean you're copying the entire filesystem > and not just the files? I believe that can run you into some issues if the > FS isn't read-only... What kind of issues? The idea is to copy the whole filesystem to another disk and keep it sync. And in case of "crisis" use dd from the backup to the original disk. signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] back up gentoo system
On Dienstag, 6. Mai 2008, David wrote: > Hi, > >I was thinking on making regular backup of my gentoo partition. I'm not > interested in incremental backups, just a mirror image of the root > filesystem. I've prepared some scripts using dd for the first copy and > rsync to keep it updated. How do you make your backups? > Any improvements?. > > Thanks in advance tar -c -b 128 / --exclude=/proc --exclude=/dev --exclude=/sys | mbuffer -m 800M -p 95 -s 65536 -D 32G -A "mtx -f /dev/sg2 next" -f -o /dev/st0 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
On Tue, May 6, 2008 at 2:44 PM, David <[EMAIL PROTECTED]> wrote: > > Hi, > > I was thinking on making regular backup of my gentoo partition. I'm not > interested in incremental backups, just a mirror image of the root > filesystem. I've prepared some scripts using dd for the first copy and > rsync to keep it updated. How do you make your backups? > Any improvements?. > > Thanks in advance > See my recent (over the weekend) thread entitled "tar a brand new Gentoo install to a USB drive for safe keeping?" about using tar to save a brand new system. In that thread one person pointed me toward this page: http://blinkeye.ch/mediawiki/index.php/GNU/Linux_System_Backup_Script_(stage4) which I tried out. It seemed to work OK for me. I had to edit jsut a coupl eof lines to work with my setup but other than that I got a number of backups created. Not too difficult. - Mark -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
+++ David [gentoo-user] [Tue, May 06, 2008 at 11:44:46PM +0200]: > > Hi, > >I was thinking on making regular backup of my gentoo partition. I'm not > interested in incremental backups, just a mirror image of the root > filesystem. I've prepared some scripts using dd for the first copy and > rsync to keep it updated. How do you make your backups? > Any improvements?. I've used bacula in the past to do backups. It's very full featured but also rather complicated for simple backups. These days I use an rsync-based backup script I wrote called 'yarbs' (yet another rsync backup system). It uses rsync and hard links to keep X days of backups. Easy to use, easy to recover from, easy to setup. I can make it available if anyone's interested. If you're using 'dd' does that mean you're copying the entire filesystem and not just the files? I believe that can run you into some issues if the FS isn't read-only... -- // Andrew MacKenzie | http://www.edespot.com // GPG public key: http://www.edespot.com/~amackenz/public.key // Some programming languages manage to absorb change, but withstand // progress. // - Alan Perlis pgpTdZQLVSXBN.pgp Description: PGP signature
[gentoo-user] back up gentoo system
Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. Thanks in advance signature.asc Description: This is a digitally signed message part.