samba-bugs at samba.org
2016-Mar-17 00:02 UTC
[Bug 11800] New: smarter "safe" symlink detection
https://bugzilla.samba.org/show_bug.cgi?id=11800
Bug ID: 11800
Summary: smarter "safe" symlink detection
Product: rsync
Version: 3.1.1
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: world.locus at gmail.com
QA Contact: rsync-qa at samba.org
Hi,
We are using --copy-unsafe-links to sync a complex file/directory tree that
spans over multiple nfs drives to another site. However, --copy-unsafe-links
considers the following subdir1_link symlink as "unsafe":
/nfs/dir1/subdir1/
|-- file1
|-- subdir1_link -> /nfs/dir1/subdir1
`-- subdir2
`-- file2
subdir1_link is detected as unsafe and therefore its content is synced over and
over and therefore we get the following:
/nfs/dir1/subdir1/subdir1_link/subdir1_link/subdir1_link/...
Is it possible to detect that subdir1_link is actually a "safe"
symlink and
sync it as:
subdir1_link -> .
Regards,
Mak
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2016-Sep-19 21:50 UTC
[Bug 11800] smarter "safe" symlink detection
https://bugzilla.samba.org/show_bug.cgi?id=11800 --- Comment #1 from world.locus at gmail.com --- a simpler enhancement would be to add an exclude switch for excluding files/dirs from unsafe link detection so that we can exclude circular symlinks manually. e.g. --exclude-unsafe-link '*parent*' these excluded symlinks would be synced as symlinks -- You are receiving this mail because: You are the QA Contact for the bug.
Possibly Parallel Threads
- Problem using smbfs with large directory
- tar-ing subdirectories separately
- [PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
- [PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
- Rsync: Directories become Symbolic Links