[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: not crossing mount points
> I'm looking at making a full backup of a machine with cedar, but only
> per filesystem. I'd like, for example, to backup /, /var, /usr and
> /home, but *not* /backup. I *think* that if I 'collect' "/", I will end
> up with *everything* in the dump, including /backup.
>
> How can I avoid that?
Simplest is to create a file called ".cbignore" in the directory you
want to ignore.
touch /backup/.cbignore
The directory will then be recursively excluded from the backup.
Or, set up an exclusion in configuration. You can either list an
absolute path to exclude or a regular expression that matches the
item(s) you want to exclude. Exclusions can be either directories
(which are excluded recursively) or individual files.
Simplest in this case would be something like this within the <collect>
section:
<exclude>
<abs_path>/backup</abs_path>
</exclude>
See also the <ignore_file> and <exclude> items in the collect
configuration docs:
http://cedar-solutions.com/software/cedar-backup/manual/ch04s03.html#cedar-config-configfile-options
KEN
--
Kenneth J. Pronovici <pronovic@ieee.org>
http://www.cedar-solutions.com/
--
To unsubscribe, send mail to cedar-backup-users-unsubscribe@cedar-solutions.com.