Giter Club home page Giter Club logo

rpi-usb-backup's Introduction

rpi-usb-backup

Automatically backup connected usb storage devices (e.g. cameras) to the RPi SD card.

Why is this useful?

  • Backup your camera photos without a laptop, great for traveling
  • No monitor/TV or keyboard needed
  • Fully automated, just plug and play

Typical backup speed with RPi 1 model B is 5 MB/s.

Requirements

  • Raspberry Pi (tested with RPi 1 model B)
  • SD card (preferably large)

Installation

  1. Install Raspbian (e.g. using the excellent "Pi Filler")
  2. Copy all files to device, then execute:

./install.sh

  1. Done

Usage

  1. Turn on the RPi.
  2. When the RPi is booted ut, the green ACT/OK LED with start blinking slowly (1 Hz).
  3. Connect your USB device, e.g. camera. It will be mounted automatically.
  4. The backup will start and the LED will blink faster (5 Hz)
  5. When the backup is finished, the LED will turn off and the RPi will shut down.
  6. Disconnect your USB device.
  7. The backup is located in /backup

To backup another USB device, just start the RPi again.

Under the hood

This tool is basically a Python script that waits for USB storage devices to be mounted. Once a device is mounted, the files will be copied using rsync to the local file system. To make the process nice and smooth without any monitor, the green OK/ACT led is used to inform about the progress. The Python script is configured as autostarting service using supervisor.

Trouble shooting

  • Log file location: /var/log/usb-backup.log

rpi-usb-backup's People

Contributors

oozberg avatar

Watchers

 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.