Open farvour opened 9 years ago
It's indeed a bug and fixed in new version.
Sincerely, Xiangyu Bu
Sent from my Windows Phone
From: Thomas Farvourmailto:notifications@github.com Sent: 9/5/2015 4:42 PM To: xybu/onedrive-d-oldmailto:onedrive-d-old@noreply.github.com Subject: [onedrive-d-old] Adding files to ignore causes them to be removed from OneDrive (#179)
This is a pretty bad bug:
If you add a glob pattern to the default_ignore.ini file, onedrive-d actually goes out of its way to REMOVE items from the remote OneDrive API (moves to trash).
This should probably not happen, and the onedrive-d client should just keep track of globbed entries that match the ignore pattern to determine whether to add tasks to actually execute the .api.rm
call.
Assuming that a local entry that doesn't exist or is ignored is causal for removal remotely is really dangerous. The only way I figured this out was a giant collection of my Photos and Movies had been essentially "Moved to Trash" when they started getting removed from my MacBook's OneDrive checkout.
Bad.
Reply to this email directly or view it on GitHub: https://github.com/xybu/onedrive-d-old/issues/179
Great! I was able to work around it by just removing the entries dB and journal so it started ignoring properly.
Best Regards, T On Sep 5, 2015 5:11 PM, "Xiangyu Bu" notifications@github.com wrote:
It's indeed a bug and fixed in new version.
Sincerely, Xiangyu Bu
Sent from my Windows Phone
From: Thomas Farvourmailto:notifications@github.com Sent: 9/5/2015 4:42 PM To: xybu/onedrive-d-oldmailto:onedrive-d-old@noreply.github.com Subject: [onedrive-d-old] Adding files to ignore causes them to be removed from OneDrive (#179)
This is a pretty bad bug:
If you add a glob pattern to the default_ignore.ini file, onedrive-d actually goes out of its way to REMOVE items from the remote OneDrive API (moves to trash).
This should probably not happen, and the onedrive-d client should just keep track of globbed entries that match the ignore pattern to determine whether to add tasks to actually execute the
.api.rm
call.Assuming that a local entry that doesn't exist or is ignored is causal for removal remotely is really dangerous. The only way I figured this out was a giant collection of my Photos and Movies had been essentially "Moved to Trash" when they started getting removed from my MacBook's OneDrive checkout.
Bad.
Reply to this email directly or view it on GitHub: https://github.com/xybu/onedrive-d-old/issues/179
— Reply to this email directly or view it on GitHub https://github.com/xybu/onedrive-d-old/issues/179#issuecomment-138011320 .
This is a pretty bad bug:
If you add a glob pattern to the ignore_v2.ini file, and remove the directories locally, onedrive-d actually goes out of its way to REMOVE items from the remote OneDrive API (moves to trash) instead of checking against the ignore globs first.
This should probably not happen, and the onedrive-d client should just keep track of globbed entries that match the ignore pattern to determine whether to add tasks to actually execute the
.api.rm
call (exclusive set).Assuming that a local entry that doesn't exist or is ignored is causal for removal remotely is really dangerous. I suspect this particular incident happened because of the journal files existing because once I removed them, and started over, it was fine.
The only way I figured this out was a giant collection of my Photos and Movies had been essentially "Moved to Trash" when they started getting removed from my MacBook's OneDrive checkout. They were not lost however, as I was able to restore from the OneDrive web interface easily. :)