Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- Z_DATE=$(date "+%Y-%m-%d")
- Z_FILENAME="backup-extroot_${Z_DATE}.tgz"
- Z_MANIFEST="backup-extroot-installed-pkgs_${Z_DATE}.manifest"
- rm -f /root/backup-extroot*${Z_DATE}*
- touch /root/${Z_FILENAME}
- tar -zcvC /overlay -X /overlay/upper/root/${Z_FILENAME} -f /root/${Z_FILENAME} .
- # List opkg-list-installed-extroot but without versions
- opkg-list-installed-extroot | cut -d' ' -f1 > ${Z_MANIFEST}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement