[Top][All Lists]

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

Re: [rdiff-backup-users] Block decent into NFS mounted filesystem?

From: Lew Wolfgang
Subject: Re: [rdiff-backup-users] Block decent into NFS mounted filesystem?
Date: Thu, 9 Feb 2017 08:24:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 02/09/2017 02:21 AM, Mike Fleetwood wrote:
On 9 February 2017 at 01:19, Lew Wolfgang <address@hidden> wrote:
Hi Folks,

Is there a way to prevent rdiff-backup from descending into an NFS-mounted

I don't think --exclude-other-filesystems will work since I already
intentionally back
up multiple filesystems in one invocation.

I inadvertently backed up 25-T of data this weekend!

Using option --exclude SHELL_PATTERN will work.  I backup from /
(root) downwards excluding /proc, /dev, /sys, etc. file system content
like this:
     rdiff-backup --exclude /proc/** --exclude /dev/** --exclude
/sys/** ... / $BACKUPDEST

--exclude /proc/** excludes everything below the /proc directory, but
the directory itself is backup up.  Exactly what I want so that on
restore an empty directory is created as the mount point.

Alternatively the --exclude-if-present option is documented in the
manual page as another option that would meet you needs.  I haven't
tried it myself but something like this would appear to work.  (The
name .no-rdiff-backup is not special.  It just has meaning to us
     cd /mnt/nfs25t
     touch .no-rdiff-backup
     rdiff-backup --exclude-if-present .no-rdiff-backup ...

Hi Mike,

One thing I forgot to mention is my use of autofs.  The stub mountpoint exists 
if not nfs-mounted.

The solution may be to just use --exclude and make sure that all nfs autofs 
occur in the excluded directory.  The  --exclude-if-present option is 
interesting, but
I don't think it will work with autofs since the directory entry appears even 
if not

Thanks for the suggestions!

"When a government enforces lawlessness it is no longer a government of the people. 
It is a tyranny."
  -- P Gendron

reply via email to

[Prev in Thread] Current Thread [Next in Thread]