Skip to content

Instantly share code, notes, and snippets.

View craxrev's full-sized avatar
😀
sup <body>

Mortadha Ghanmi craxrev

😀
sup <body>
View GitHub Profile
@craxrev
craxrev / backup.sh
Created November 23, 2018 23:42 — forked from ProBackup-nl/backup.sh
/opt and /etc/storage backup utility for Padavan firmware using rsync
#!/bin/sh
if [ $# = 0 ] || [ $1 = -h ]; then cat <<EOF
--------------------------------------------------------------------------
Pro Backup's handy rotating-filesystem-backup utility for Padavan firmware
--------------------------------------------------------------------------
It makes rotating backup-snapshots of /opt and /etc/storage when called
Installation: curl -O https://gist.githubusercontent.com/ProBackup-nl/82fb02c67dc05ca0310d0f9f8e8be14c/raw/backup.sh && chmod 755 backup.sh && mv backup.sh /opt/usr/sbin/backup
Goals: 1. many redundant copies to defeat (flash) bit rot -> no hard links (yet)