[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] --listed-incremental issues
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] --listed-incremental issues |
Date: |
Tue, 05 Jul 2011 09:23:35 +0300 |
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?
> # 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.
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 - .
Regards,
Sergey