libarchive / libarchive

Multi-format archive and compression library

Home Page:http://www.libarchive.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proposal: honor uarch flag in bsdtar

vestein463 opened this issue · comments

Bsdtar is able to honor the nodump flag.

Adding a flag --uarch could greatly enhance the usefulness of bsdtar for incremental backups. On ZFS (at least on FreeBSD) the uarch flag is automatically set, if the file content changes. Archiving the files with flag set, and resetting it after success of the "tar c", would make incremental backup really easy.

Just one aftertought. It seems more safe to reset to flag immediately even before reading the file to avoid a race condition.