OpenBackRestore/backup/backup.sh
2024-03-30 09:49:09 +08:00

7 lines
250 B
Bash
Executable File

#!/bin/sh
mkdir -p /tmp/upload/backup
cd /tmp/upload/backup
cp /etc/opkg/distfeeds.conf distfeeds.conf
opkg list-installed > packages-list.txt
tar -czvf overlay_backup.tar.gz /overlay
tar -czvf etc_backup.tar.gz --exclude='/etc/config/wireless' /etc