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

jdrivesync should have a '--no-delete' option that prevents the deletion of files from the target #8

Closed
siom79 opened this issue Jun 12, 2015 · 4 comments

Comments

@siom79
Copy link
Owner

siom79 commented Jun 12, 2015

"jdrivesync handles synchronization very well. But, for some applications, a simple copy or move operation is what is required.

For example, my application is a Raspberry Pi based wildlife camera. The camera writes jpeg and mp4 files onto its SD card, and a cron job periodically uploads these files to Google Drive using jdrivesync. I would like to be able to delete the files from the SD card once they have been uploaded, to free up space on the SD card. However, if I do this, the next synchronization deletes the files from Google Drive.

I would like to suggest a "--no-delete" option, that would prevent jdrivesync from deleting files from the target that have been removed from the source. I believe this would be easy to implement, and would make jdrivesync a much more flexible tool."

M. Fisher via email

@siom79
Copy link
Owner Author

siom79 commented Jun 13, 2015

I have added the new option --no-delete to jdrivesync. You can test it using this snapshot version here.

Let me know what you think.

@mfisheresq
Copy link

I tested the snapshot version, and it works exactly as I wanted. Many thanks for implementing this.

PS: A minor point... The log still reports that a number of files have been deleted.

@siom79
Copy link
Owner Author

siom79 commented Jun 17, 2015

Fine.

The implementation for the report still has to be changed. This issue here also indicates that I should change it. I think I will have to rework that one a bit.

siom79 added a commit that referenced this issue Jun 17, 2015
…ipped_error', 'skipped_GoogleApps' and 'skipped_deletion'
@siom79
Copy link
Owner Author

siom79 commented Nov 29, 2015

Released with version 0.3.0.

@siom79 siom79 closed this as completed Nov 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants