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 | |
| # Lazy method to use Kopia to backup your openwrt install | |
| # Mostly for x86/64 openwrt installs using attended-systemupgrade | |
| # Downloads and uses /tmp for all operations to make sure disk doesn't fill up | |
| # You need to run kopia repository connect first | |
| # Set /root/.config/kopia/* to be saved during flashing firmware | |
| # Can then add this script to crontab. It will re-download Kopia after reboots |