Skip to content
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

Adding a directory to ignore list make osync delete it #215

Open
Artiom-M opened this issue Oct 8, 2020 · 4 comments
Open

Adding a directory to ignore list make osync delete it #215

Artiom-M opened this issue Oct 8, 2020 · 4 comments
Assignees
Labels
Milestone

Comments

@Artiom-M
Copy link

Artiom-M commented Oct 8, 2020

On a working 2 host replication I have added one directory (existing on both hosts) to the ignore list.
osync has deleted it on both hosts. Hopefully I have found it in the deleted directory...

@deajan
Copy link
Owner

deajan commented Oct 19, 2020

Sounds really bad. Can you give the usual background so I can investigate ?

@Artiom-M
Copy link
Author

Artiom-M commented Oct 25, 2020

So two hosts with ssh based replication. Master has osync 1.3.0-rc1 run as a systemd service:

/usr/local/bin/osync.sh /etc/osync/fcd_sync.conf --on-changes --errors-only

One directory (it was that with ( in filenames) is synced but with error. So I add it to ignore list, expecting it to remain on both servers as is. But it was deleted on target. I am going to retry the same steps again and capture the log.

@Artiom-M
Copy link
Author

After changing the setting I have restarted the service so it starts replication.
Nothing special in the logs:

TIME: 0 - Sat Oct 24 20:22:18 EDT 2020 - osync 1.3.0-rc1 script begin.
TIME: 633 - No are no conflicatual files.
TIME: 634 - osync finished.
2020-10-24 20:57:02 - osync finished.
2020-10-24 20:57:02 - osync finished.
2020-10-24 20:57:02 - Sat Oct 24 20:57:02 EDT 2020 - osync 1.3.0-rc1 script begin.
TIME: 0 - Sat Oct 24 20:57:02 EDT 2020 - osync 1.3.0-rc1 script begin.
TIME: 649 - No are no conflicatual files.
TIME: 650 - osync finished.

And my testing directory is in deleted files now! On both servers.

@deajan deajan added the bug label Nov 3, 2020
@deajan deajan self-assigned this Nov 3, 2020
@deajan deajan added this to the v1.3 release milestone Nov 3, 2020
@deajan
Copy link
Owner

deajan commented Nov 3, 2020

I can confirm this one.
Problem is osync is stateful, so once you add stuff to the ignore list after osync has "seen" it in the previous run, it suggests that the folder shouldn't be there to osync, hence the deletion.
Indeed this behavior is not acceptable, I'll see how I can get the delete function to honor the ignore list, since it's rsync format, and the delete function isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants