bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] --listed-incremental issues


From: ashley willis
Subject: Re: [Bug-tar] --listed-incremental issues
Date: Wed, 6 Jul 2011 20:08:14 -0500 (CDT)

On Tue, 5 Jul 2011, Sergey Poznyakoff wrote:

ashley willis <address@hidden> ha escrit:

the original command without --listed-incremental works:

# cd "/mnt" && find . -depth -xdev ! -type s -print0 | tar --create --null \
  --files-from=- --ignore-failed-read --same-permissions --no-recursion \
  --totals --level=0 --verbose --sparse -b 20 --file /mnt/flexbackup/mnt.0.tar

It would add each non-directory member to the archive twice. Was that intended?

you already addressed and corrected.

# cd "/mnt" && find . -depth -xdev ! -type s -print0 | tar --create --null
  --files-from=- --ignore-failed-read --same-permissions --no-recursion \
  --totals --listed-incremental=/mnt/flexbackup/mnt.0.snapshot --level=0 \
  --verbose --sparse -b 20 --file /mnt/flexbackup/mnt.0.tar

That's even more risky: incremental backups work by comparing directory contents and metadata with the information stored on a previous run. It is not a good idea to give individual files as arguments to tar in incremental mode.

so i discovered after sending my emails, including someone in 2005 trying to do what i was trying. the documentation should state this.

To avoid archiving sockets, I'd suggest creating an exclude list
instead. E.g:

find . -depth -xdev -type s |
tar -C /mnt \
    --create --null \
    --files-from=- --ignore-failed-read --same-permissions --no-recursion \
    --totals --listed-incremental=/mnt/flexbackup/mnt.0.snapshot --level=0 \
    --verbose --sparse -b 20 --file /mnt/flexbackup/mnt.0.tar \
    --exclude-from - .

i suppose that would work, minus the "--files-from=-" and "--null". and i might be able to have --exclude work for me. thanks.

-ashley
--
No one can make you feel inferior without your consent.
Eleanor Roosevelt



reply via email to

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