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

Copy all images to external USB drive when attached #33

Open
jywarren opened this issue Oct 16, 2018 · 0 comments
Open

Copy all images to external USB drive when attached #33

jywarren opened this issue Oct 16, 2018 · 0 comments

Comments

@jywarren
Copy link
Member

OR: save files to external USB drive if it exists. Either would be great!

I think maybe the way to do this is:

  1. have an environment variable with the path to save to, like $FILE_SAVE_LOCATION or something
  2. have an event run when a new disk is mounted OR monitor disks (maybe with ls /media/removable/ or wherever they'll show up?) once per second using cron
  3. when a new disk is present, re-assign $FILE_SAVE_LOCATION to be the new removable media.
  4. if yet another disk is inserted, re-assign again to the newest
  5. set installed software like RPi Cam interface (see Add web-based RPi Cam software for use with Raspberry Pi camera #13) or image-sequencer to use the location in $FILE_SAVE_LOCATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant