bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] --listed-incremental issues


From: ashley willis
Subject: [Bug-tar] --listed-incremental issues
Date: Mon, 4 Jul 2011 15:10:28 -0500 (CDT)

i was using tar 1.23 and my backup was horribly breaking adding the use of --listed-incremental, but i see that that particular issue has been resolved in 1.26. i'm running 64 bit gentoo linux, fwiw.

my problem now is that other filesystems are being pulled into my archive.

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

with --listed-incremental it does not stay on one filesystem:

# 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

and adding --one-file-system has no effect whatsoever.

with find sometimes i want to do this as well:

# find . -regex "\./\(tmp\|portage\)" -prune -o -xdev ! -type s -print0

and my commands are from flexbackup (version 1.2.1-r11), which i have modified instead of creating my own scripts from scratch.

not using find creates an archive of the same files as not using --listed-incremental above:

# cd "/mnt" &&  tar --create --null --ignore-failed-read --same-permissions \
  --totals --listed-incremental=/mnt/flexbackup/mnt.0.snapshot --level=0 \
  --verbose --sparse -b 20 --one-file-system --file /mnt/flexbackup/mnt.0.tar .

in conclusion, using --listed-incremental seems to break using find and --no-recursion, or am i missing something?

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]