Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions attic/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
is_cachedir, bigint_to_int
from attic.remote import RepositoryServer, RemoteRepository

has_lchflags = hasattr(os, 'lchflags')

class Archiver:

Expand Down Expand Up @@ -158,6 +159,9 @@ def _process(self, archive, cache, excludes, exclude_caches, skip_inodes, path,
# Ignore unix sockets
if stat.S_ISSOCK(st.st_mode):
return
# Ignore if nodump flag set
if has_lchflags and (st.st_flags & stat.UF_NODUMP):
return
self.print_verbose(remove_surrogates(path))
if stat.S_ISREG(st.st_mode):
try:
Expand Down