This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |