-
Notifications
You must be signed in to change notification settings - Fork 47
Backup Restore
Archived (and compressed) folders can be created with the purpose of backing up data and restoring it later. The archived folder's contents should be relative to /data
.
The following command creates an archived folder for /data/etc
and places in /boot
, assuming that (1) boot partition is mounted read-write and (2) the archived contents are small enough to fit into the remaining space of the boot partition:
tar -acf /boot/backup-etc.tar.gz -C /data etc
Archived folders placed on the boot partition and named backup-*.tar.gz
will automatically be restored at next boot.
The S20restorebackups
init script will extract and restore all archives with the above name to /data
. After a successful restoration, the archive file is removed from boot partition.
Before the restoration, the boot partition is mounted read-write. It is remounted read-only afterwards.
- bluetooth.conf
- captive-portal.conf
- cpufreq.conf
- date.conf
- dnsmasq.conf
- docker-compose.yml
- dtoverlays
- dyndns-update.sh
- environment
- firewall.sh
- fstab.user
- hostapd.conf
- ifalias.conf
- localtime
- modprobe.conf
- modules
- mongodb.conf
- netwatch.conf
- ntp.conf
- os.conf
- proftpd.conf
- redis.conf
- smb.conf
- ssh/config
- ssh/sshd_config
- ssl/domain
- ssl/email
- static_ip.conf
- sysctl.conf
- toemmc.conf
- version
- watchdog.conf
- wpa_supplicant.conf