Backing up photos with the Raspberry Pi (Part 2)

Lead Image © Valery Kachaev,

Safe and Sound

Whenever you're traveling, there's always a chance you could lose your camera, so you should save your pictures as you go. The Pi image bank can save images and even display the pictures via a web server.

This project is the second in our series and follows on from the idea of setting up a data bank of your images to keep them safe. Simply connect your digital camera's memory card to the Pi using a USB adapter and it will automatically back up your photos (Figure 1). The status of the backup is signaled using the three LEDs. This sequel to our previous article still allows you to back up images easily while providing you with some extra options.

As promised in Part 1, there's now an updated version of the backup script. In addition, the backup should be accessible from a Windows machine. However, as the data is stored on a partition formatted for a Linux filesystem, attaching a drive to a Windows PC won't work. You can, however, find a workaround for this below. Finally, we set up a small web server so you can view your pictures whenever you want.

Better Backups

The backup script from Part 1 does the job but has a few flaws. For instance, when copying data from a memory card there's a chance it could accidentally overwrite files with identical names in the backup directory. The developer's GitHub page [1] now has an updated version of the copy_img script, imaginatively named copy_img2, which you'll find in the folder /files/usr/local/sbin.


Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content