Dropbox monitoring tool. I have this running on a Raspberry Pi via a cronjob, which checks a bunch of listed Dropbox folders (which my user has access to) and sends out an email showing any new files in those folders.
- clone into a directory
- cp raydar-config.php.template to raydar-config.php
- edit raydar-config.php to point to your .raydar in your home directory
- create a .raydar directory in your home directory
- add the following files to the directory above, using the templates shown below: ** dirs - list of directories in Dropbox to check ** smtp - more info to come on how to set up SMTP.
- The script uses Dropbox-Uploader, so you'll need to set up an app in Dropbox. Full instructions are at https://github.com/andreafabrizi/Dropbox-Uploader, but you should need to do the following from the base directory of the repo.
git submodule init git submodule update ./bash/Dropbox-Uploader/dropbox_uploader.sh
Once you have an access key, the script should work.
[scan_dirs] /Photos/mine /Photos/Bob [ignore_dirs_match] .AppleDouble [ignore_files_match] .picasa.ini
smtp_host=host.example.com smtp_auth=true smtp_username=my-user smtp_password=my-password smtp_secure=tls firstname.lastname@example.org smtp_fromname=Raydar Alerts email@example.com,firstname.lastname@example.org,email@example.com smtp_subject=Dropbox updates [[DATE]]
- Maybe move to a per-directory cache, rather than a directory-tree based one (would preserve cache if moving between sub/parent folders)
- Link recursive option to dirs config