Re: Backup config files in home directory
Alan Chandler wrote: Douglas A. Tutty wrote: On Sun, Jun 21, 2009 at 01:01:52AM +0800, ronggui wong wrote: I have other files and directories in the home directory, and I just want to backup all the config files, most of them are hidden files and directories. Now I use tar and manually exclude my other files and directories with --exclude argument. Is there a better way to do this? You'd have to define 'better'. A tar archive is certanly easy to restore. You can even just pull in one file out of an archive. You can look into the archive interactivly with midnight commander. Personally, I use tar for all my backups. Doug. The more modern versions of tar also support the --exclude-tag option which enables you to drop a file with a particular name (I use NOBAK.TAG) into a directory and it skips that directory during backup. I use that to create a backup of an external site I manage with the key operational directories available to my fellow administrators from my personal web site. Apologies - that was meant to go just to the list -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
On Sun, Jun 21, 2009 at 01:01:52AM +0800, ronggui wong wrote: I have other files and directories in the home directory, and I just want to backup all the config files, most of them are hidden files and directories. Now I use tar and manually exclude my other files and directories with --exclude argument. Is there a better way to do this? You'd have to define 'better'. A tar archive is certanly easy to restore. You can even just pull in one file out of an archive. You can look into the archive interactivly with midnight commander. Personally, I use tar for all my backups. Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
On Saturday 20 June 2009 11:29:14 pm Suno Ano wrote: Tzafrir If you want to follow that route, you can use rsync as well. Tzafrir Or even go a bit further and use hard-links (-H) to make Tzafrir yourself a wayback machine. Unison basically is a bidirectional rsync (the rsync algorithm is used), so why make things more complicated than necessary ... Unison is the more complicated than necessary option here. If all that is needed is backup, unison is not the best choice. As far as recommendations go, I would like to say that instead of messing around with hard links to get an incremental backup solution, I would use rdiff-backup, which was written for this exact purpose (rsync + hard links). MM -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
Matthew Unison is the more complicated than necessary option here. Matthew If all that is needed is backup, unison is not the best Matthew choice. true, but then having a backup without a clearly defined restore scenario does not make a lot of sense. Once Unison is up and running that part can be considered done as well. Finally it probably comes down to individual taste ... as we know, many roads lead to Rome ;) pgpAnt3seZBBs.pgp Description: PGP signature
Re: Backup config files in home directory
On Sun, Jun 21, 2009 at 09:57:09PM +0200, Suno Ano wrote: Matthew Unison is the more complicated than necessary option here. Matthew If all that is needed is backup, unison is not the best Matthew choice. true, but then having a backup without a clearly defined restore scenario does not make a lot of sense. Once Unison is up and running that part can be considered done as well. Likewise for any rsync+hardlinks solution (like rdiff-backup). Except that you get an incremental backup. Hence it's easier to have more than one copy. Restore? cp -a . Or your favorite file manager. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
On Sun, 21 Jun 2009 12:26:54 -0600 Matthew Moore anonymous.jon...@gmail.com wrote: ... As far as recommendations go, I would like to say that instead of messing around with hard links to get an incremental backup solution, I would use rdiff-backup, which was written for this exact purpose (rsync + hard links). Or rsnapshot. Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Backup config files in home directory
Hi all, I have other files and directories in the home directory, and I just want to backup all the config files, most of them are hidden files and directories. Now I use tar and manually exclude my other files and directories with --exclude argument. Is there a better way to do this? Thanks. Ronggui HUANG -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
hi, i prefer to use dar, it can do incremental backups as well. greetings, vitaminx 2009/6/20 ronggui wong ronggui.w...@gmail.com Hi all, I have other files and directories in the home directory, and I just want to backup all the config files, most of them are hidden files and directories. Now I use tar and manually exclude my other files and directories with --exclude argument. Is there a better way to do this? Thanks. Ronggui HUANG -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- www ... http://www.callistix.net/ mail ... vitam...@callistix.net irc ... #chezpaeule @ euirc mud ... vitaminx @ aardmud
Re: Backup config files in home directory
On Sun, Jun 21, 2009 at 01:01:52AM +0800, ronggui wong wrote: Hi all, I have other files and directories in the home directory, and I just want to backup all the config files, most of them are hidden files and directories. Now I use tar and manually exclude my other files and directories with --exclude argument. Is there a better way to do this? I do not know if this is better but there are other ways :-) find+cpio or find+afio http://www.debian.org/doc/manuals/debian-reference/ch10.en.html#_idioms_for_the_archive Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
ronggui Hi all, I have other files and directories in the home ronggui directory, and I just want to backup all the config files, ronggui most of them are hidden files and directories. Now I use tar ronggui and manually exclude my other files and directories with ronggui --exclude argument. Is there a better way to do this? You could give http://sunoano.name/ws/public_xhtml/unison.html a try. pgpOkomFOBO1N.pgp Description: PGP signature
Re: Backup config files in home directory
On Sat, Jun 20, 2009 at 09:58:43PM +0200, Suno Ano wrote: ronggui Hi all, I have other files and directories in the home ronggui directory, and I just want to backup all the config files, ronggui most of them are hidden files and directories. Now I use tar ronggui and manually exclude my other files and directories with ronggui --exclude argument. Is there a better way to do this? You could give http://sunoano.name/ws/public_xhtml/unison.html a try. If you want to follow that route, you can use rsync as well. Or even go a bit further and use hard-links (-H) to make yourself a wayback machine. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Backup config files in home directory
Tzafrir If you want to follow that route, you can use rsync as well. Tzafrir Or even go a bit further and use hard-links (-H) to make Tzafrir yourself a wayback machine. Unison basically is a bidirectional rsync (the rsync algorithm is used), so why make things more complicated than necessary ... pgpQglB6rBX9Q.pgp Description: PGP signature