-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude list delete files from both side #201
Comments
Can you give more details ? Like exactly what you're trying to achieve, osync version used ? config file / command line ? |
Here is an use case that I have experienced during the evaluation stage of the osync tool (master version) that might be related to this issue:
I think that the matching files should be only deleted (excluded) from the target. However, if the RSYNC_EXCLUDE_FROM is already configured on the first run (initial sync), the matching files will neither be transferred to nor deleted from master subsequently. |
Okay I see... That's actually a known issue (see KNOWN ISSUES). |
From what I noticed, this is not strictly related to "soft deletion". The files are deleted regardless of "soft deletion" enabled or disabled. |
I'm sorry, I have a hard time getting what you're talking about here. |
I just tried the following: Create a conf file based on the template like
Created the following exclude.list file
Creating files in directories
Run osync Result:
This is the excpected behavior. Files with extension |
Here is the scenario (unexpected behavior):
Result: all 3 files are synced (i.e. existing in both initiator and target folders)
Result: c.test is deleted from both initiator and target. |
Ok, now it's getting clear. I'll add a word to the doc. |
Yes, it makes sense because if I add |
This was freaking scary... A big blocker bug just before a release. |
Describe the bug
Tried to add some list to exclude, but i get them deleted from source and destination
To Reproduce
RSYNC_EXCLUDE_FROM="exclude.list"
The text was updated successfully, but these errors were encountered: