You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since catar has no way to encode hardlinks (yet), this isn't something desync can do at this point since it would require rewinding the stream to duplicate the file. One workaround would be to add --hard-dereference to the tar command to ensure the content is duplicated in the input stream.
tar --hard-dereference -C /path/to/dir -c . | desync tar --input-format tar archive.catar -
I updated the documentation to mention this limitation. Wondering if I should make desync fail/or warn when it sees a hardlink in a tar stream. Probably better than ending up with empty files.
desync does not support hardlinks:
Source inode numbers are the same (hardlinked), destination inode numbers are unique.
But with tarfs things get even worse:
Destination gets zero-length files instead of copies.
The text was updated successfully, but these errors were encountered: