Giter VIP home page Giter VIP logo

little-backup-box's Introduction

Little Backup Box

Bash shell scripts that transform a Raspberry Pi (or any single-board computer running a Debian-based Linux distribution) into an inexpensive, fully-automatic, pocketable photo backup and streaming device.

Installation

First of all, make sure that your Raspberry Pi is connected to the internet.

Run the following command on the Raspberry Pi:

curl -sSL https://goo.gl/btmpKd | bash

When prompted, reboot the Raspberry Pi.

By default, Little Backup Box is configured to back up storage cards. To make the script transfer files directly from the connected camera, run the crontab -e command on Raspberry Pi. Comment the following line by prepending # to it:

@reboot sudo /home/pi/little-backup-box/backup.sh > /home/pi/little-backup-box.log

Uncomment then the line below by removing #:

#@reboot sudo /home/pi/little-backup-box/gphoto-backup.sh > /home/pi/gphoto-backup.log

Save the changes.

Keep in mind that in this case, the transferred files are saved in the /home/pi/[CAMERA MODEL] directory on the system storage card. Make sure that the card you use with Raspberry Pi has adequate storage capacity.

Important Make sure that the camera is set to the MTP USB connection mode.

Usage

  1. Boot the Raspberry Pi
  2. Plug in the backup storage device (or camera, if you configured Little Backup Box as described above)
  3. Plug in the card reader and wait till the Raspberry Pi shuts down

To geocorrelate the backed up photos, place a GPX file in the root of the storage device before plugging it into the Raspberry Pi.

Note: To differentiate between different storage cards, the backup script creates a datetime-based .id file in the root of each storage card. The name of the .id file is also used as the destination backup folder on the storage device.

With the direct camera transfer script enabled, follow this steps:

  1. Boot the Raspberry Pi
  2. Connect the camera to the Raspberry Pi
  3. Turn the camera on on and wait till the Raspberry Pi shuts down

Note that the direct camera file transfer script doesn't support geocorrelation.

Problems?

Please report bugs and issues in the Issues section.

Contribute

If you've found a bug or have a suggestion for improvement, open an issue in the Issues section.

To add a new feature or fix issues yourself, follow the following steps.

  1. Fork the project's repository repository
  2. Create a feature branch using the git checkout -b new-feature command
  3. Add your new feature or fix bugs and run the git commit -am 'Add a new feature' command to commit changes
  4. Push changes using the git push origin new-feature command
  5. Submit a pull request

Author

Dmitri Popov [email protected]

License

The GNU General Public License version 3

Linux Photography

Little Backup Box is a part of a streamlined and automated Linux-based photographic workflow described in the Linux Photography book. The book provides step-by-step instructions on building a Raspberry Pi-based photo backup device running the Little Backup Box script. Get your copy at Google Play Store or Gumroad.

little-backup-box's People

Contributors

dmpop avatar pnumekin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.