From 6fd3b2db8ca683513709560744aebd4cff3d378d Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Sun, 28 Sep 2008 00:07:22 +0200 Subject: Implemented a snapshot exclude list. * This finally enables one of the most requested feature to exclude things like disk caches and temporary files from the snapshots, just by editing "/etc/live-snapshot.exclude_list". This only works for cpio targets and for squashfs creations. --- conf/live-snapshot.exclude_list | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 conf/live-snapshot.exclude_list (limited to 'conf') diff --git a/conf/live-snapshot.exclude_list b/conf/live-snapshot.exclude_list new file mode 100644 index 0000000..82972e3 --- /dev/null +++ b/conf/live-snapshot.exclude_list @@ -0,0 +1,17 @@ +# /etc/live-snapshot.exclude_list example +# +# If this file is present in the proper path, each uncommented not empty line +# will be excluded in the target snapshot when live-snapshot is run. +# +# The syntax for the line is just a full file or directory pathname. + +# Each line is treated like a plain match string for "grep -F -v", +# so be careful: e.g. "/tmp" will exclude also "/var/tmp" ! + +# Exclude some standard temporary paths +/tmp +/var/log +/var/cache + +# Firefox profiles are not always useful to remember +/root/.mozilla -- cgit v1.2.3