pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
549 stars 101 forks source link

Add sync to DropBox feature #28

Closed MartinStolle closed 6 years ago

PhyNerd commented 7 years ago

This might be a starting point: https://github.com/andreafabrizi/Dropbox-Uploader

It allows for recursive directory upload. But there sadly is no check for uploading changed files only. This however could be solved by writing uploaded files with their last change date to a txt file and crosschecking before uploading. Or alternatively a List could be created where files get added, after being created by timolo, that will then be wiped on the next sync.

pageauc commented 7 years ago

Jan

I have done quite a bit of work with dropbox uploading using the bash script and dropbox and other python api/sdk libraries https://www.dropbox.com/developers/documentation/python . The big problem is that you have to setup a dropbox project and this is not intuitive, so requires detailed instructions. I also ran across the problem of syncing changed files and yes you would need to keep track of snapshots of changes to sync or do like google drive and do a comparison of files to determine changes prior to sync. I have not seen too much interest in a dropbox feature so I have not done pursued this feature. Wiki has a message about dropbox https://github.com/pageauc/pi-timolo/wiki/sync.sh---Automate-gdrive-Uploads-and-More

Let me know your feelings on this.

Claude ...

On Wed, Apr 5, 2017 at 8:27 AM, Jan Werkmann notifications@github.com wrote:

This might be a starting point: https://github.com/andreafabrizi/Dropbox-Uploader

It allows for recursive directory upload. But there sadly is no check for uploading changed files only. This however could be solved by writing uploaded files with their last change date to a txt file and crosschecking before uploading. Or alternatively a List could be created where files get added, after being created by timolo, that will then be wiped on the next sync.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/28#issuecomment-291845681, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZB8d2fJkBgKlL7vNx-Q5bqAiQJYmks5rs4ihgaJpZM4LS0rs .

-- See my YouTube Channel at http://www.youtube.com/user/pageaucp

PhyNerd commented 7 years ago

I must have missed that passage in the wiki. Since it seems to be quite a bit of work and gdrive sync works nicely I also didn't look into it much. Just wanted to leave the link here so someone that has time and interest has a starting point. Maybe after tackling the threading of the camera module(which comes with it's own set of little problems) I'll come back to dropbox.

pageauc commented 7 years ago

Dropbox section is at the bottom of the wiki link on the previous discussion Alternative DropBox solution https://github.com/pageauc/pi-timolo/wiki/sync.sh---Automate-gdrive-Uploads-and-More#alternative-dropbox-solution

On Wed, Apr 5, 2017 at 9:23 AM, Jan Werkmann notifications@github.com wrote:

I must have missed that passage in the wiki. Since it seems to be quite a bit of work and gdrive sync works nicely I also didn't look into it much. Just wanted to leave the link here so someone that has time and interest has a starting point. Maybe after tackling the threading of the camera module(which comes with it's own set of little problems) I'll come back to dropbox.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pageauc/pi-timolo/issues/28#issuecomment-291859453, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr1ZOiMPvloTlxNDSr9yEnpe43Jedleks5rs5W7gaJpZM4LS0rs

-- See my YouTube Channel at http://www.youtube.com/user/pageaucp

marciano1 commented 6 years ago

What about using rsync/scp ? I've seen something called rclone

pageauc commented 6 years ago

I have done some work with dropbox using https://github.com/andreafabrizi/Dropbox-Uploader/ It works but integrating it into pi-timolo seemed a bit more work than I wanted to do for a feature I would not use. I prefer google drive. If someone wants to develop this feature and give me a github push I would be willing to test and document. see Alternative DropBox solution https://github.com/pageauc/pi-timolo/wiki/sync.sh---Automate-gdrive-Uploads-and-More#alternative-dropbox-solution

Claude ...

marciano1 commented 6 years ago

I also don't use Dropbox nor GDrive in these cases, I rent a dedicated server for other purposes where I easily can upload and other options rsync and scp have.