Auto back up images from a raspberry pi to a removable storage device automatically from an SD card.
pip3 install -r requirements.txt
linux/settings.ini
file. --> more information belowsudo
: sudo sh install.sh lcd
or sudo sh install.sh auto
. Use the auto
installation if you aren't using an LCD screen to actively manage. Use lcd
if you are using the 16x2 lcd screen.In order to properly use Dump as it was intended, use the LCD screen. While not required, it allows you to actively manage and control your backups. It's safer.
lsusb -v
command and observed by the bcdUSB
descriptor.select
button to start the backup. The backup source and the backup destination are determined in the settings.ini
file.right
button to perform and rsync
differential backup based on timestamps.5 seconds
after the It's safe to remove drives
dialog box appears. restart
the Raspberry Pi, simply hit the up
button. This will restart the raspberry pi. A 3 second
timer will appear notifying you a restart is pending. shutdown
the Raspberry Pi, simply hit the down
button. This will shutoff the raspberry pi. It's now safe to unplug the power supply from the Raspberry Pi.right
button to perform a differential backup. The settings file is comprised of a single [settings]
field. Under this field there contains several variables that control how the devices are to be mounted and how to locate the devices.
Settings | Information |
---|---|
dumper_loc | This for the sh isntall.sh auto setting. The location of dumper_no_lcd.py |
backup_device_name | Generic name of the backup device. Can be found using lsusb . Can either add the full name or a portion of the known name. Example, Sandisk |
input_device_name | Generic name of the source device. Can be found using lsusb . Can either add the full name or a portion of the known name. Example, Lexar |
dev_backup_loc | The /dev/ point for the backup device. Can be found using lsblk and some digging. Example, /dev/disk/by-uuid/BA5C-B93C |
dev_input_loc | The /dev/ point for the source device. Can be found using lsblk and some digging. Example, /dev/disk/by-id/usb-Lexar_LRWM04U_201804030001-0\:0-part1 |
mnt_backup_loc | The mount location of where the backup device from /dev/ will be mounted to. Default is /mnt/ . A folder will be created called /mnt/backup to mound the backup device to. |
mnt_input_loc | The mount location of where the source device from /dev/ will be mounted to. Default is /mnt/ . A folder will be created called /mnt/source to mound the backup device to. |
/home/pi/
then you need to open the dumper_lcd.py
and/or dumper_no_lcd.py
and change the source location for the settings.ini
file. Chris Herzog |
Joe Freimuth |