mirror of
https://github.com/borgbackup/borg.git
synced 2024-09-11 12:36:12 +03:00
Merge branch 'honor_nodump' of https://github.com/jeffrizzo/attic
This commit is contained in:
commit
b512827b07
@ -24,6 +24,8 @@
|
||||
is_cachedir, bigint_to_int, ChunkerParams
|
||||
from .remote import RepositoryServer, RemoteRepository
|
||||
|
||||
has_lchflags = hasattr(os, 'lchflags')
|
||||
|
||||
|
||||
class Archiver:
|
||||
|
||||
@ -172,6 +174,9 @@ def _process(self, archive, cache, excludes, exclude_caches, skip_inodes, path,
|
||||
if restrict_dev and st.st_dev != restrict_dev:
|
||||
return
|
||||
status = None
|
||||
# Ignore if nodump flag is set
|
||||
if has_lchflags and (st.st_flags & stat.UF_NODUMP):
|
||||
return
|
||||
if stat.S_ISREG(st.st_mode):
|
||||
try:
|
||||
status = archive.process_file(path, st, cache)
|
||||
|
Loading…
Reference in New Issue
Block a user