Skip to content

Instantly share code, notes, and snippets.

View bdtech's full-sized avatar

Bryan D. bdtech

  • USA
View GitHub Profile
@bdtech
bdtech / raspberrypi-sd-backup.sh
Created March 12, 2013 23:35
Raspberry Pi backup SD card as zipped image
#!/bin/bash
me=`basename $0`
exec 1> /tmp/$me 2>&1
BDIR="/mnt/data/backup"
mv $BDIR/pi-dos.bin.gz $BDIR/pi-dos.bin.gz.1 -f
mv $BDIR/pi-ext4.bin.gz $BDIR/pi-ext4.bin.gz.1 -f