[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: excludes list



Brad Sims wrote:
On Thursday 29 December 2005 2:24 am, Chinook wrote:
In cloning my system I want to capture everything that is important if I need to "rollback" to a clone, but I don't want to waste time with data that is not needed.

For example, I might exclude anything within /tmp [?], /proc, /home/<usr>/tmp but not /dev, /etc, /var, /home (other than <usr>/tmp and known fluff), /root and /opt.

Been googling around for more than over generalizations but have not done so well yet :-)

Any comments, urls, etc would be appreciated.

Well presuming you are using rsync create a file named something like
Exclude_List. Exclude_List contains each directory to be excluded on a
separate line. When you call rsync add ` --exclude-from=$exclude_file_name.

Here is a link to the script I use to rsync my hardrive to an external usb HD.
http://home.insightbb.com/~bmsims1/Backup_Script.html

Thanks Brad,

I had gotten that far - just unfamiliar with the specifics of the Linux file system. Found some more info though, like
http://www.tldp.org/LDP/intro-linux/html/sect_03_01.html
and http://www.pathname.com/fhs/pub/fhs-2.3.html
which is helping me decide on specifics.

I'm fairly familiar with the various *nix tools
(note my article http://homepage.mac.com/lee_cullens/Bx3.html).

Thanks again for the reply,
Lee C
"Documentation is like sex: when it's good, it's very, very good. And when it's bad, it's better than nothing." -- anom



Reply to: