Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| user:vvkjndl:openwrt-backup-with-exclusions [2020/10/13 14:09] – vvkjndl | user:vvkjndl:openwrt-backup-with-exclusions [2020/10/13 14:18] – vvkjndl | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| :!: The only purpose of using this script is if you don't want specific files to be included in your backup archive file. | :!: The only purpose of using this script is if you don't want specific files to be included in your backup archive file. | ||
| + | |||
| + | * Create two directories '' | ||
| + | * Get all these three files to ''/ | ||
| + | * Make the script executable '' | ||
| + | * Run the script ''/ | ||
| + | * Backup file will be available at / | ||
| <file txt backup-files-include> | <file txt backup-files-include> | ||
| - | This file will be generated by script automatically using '' | + | This file will be generated by script automatically using "sysupgrade --list-backup" command. |
| </ | </ | ||
| Line 24: | Line 30: | ||
| backdir=/ | backdir=/ | ||
| - | backfile=backup-router | + | backfile=backup-$(uci get system.@system[0].hostname) |
| backinclude=/ | backinclude=/ | ||
| backexclude=/ | backexclude=/ | ||