Skip to content

Instantly share code, notes, and snippets.

@the-cashman
the-cashman / openwrt_kopia_backup.sh
Last active July 6, 2023 10:27
OpenWrt Kopia Backup Script x86 x64
#!/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