Skip to content

Instantly share code, notes, and snippets.

@kedder
Last active June 19, 2020 20:36
Show Gist options
  • Save kedder/2dba3dc50e9efb802252bc6ccfebe196 to your computer and use it in GitHub Desktop.
Save kedder/2dba3dc50e9efb802252bc6ccfebe196 to your computer and use it in GitHub Desktop.

Openvario SD Card Backup and Restore

Backup

On Openvario:

tar c /home/root /var/lib/connman /etc/opkg/ /etc/dropbear /opt/conf | gzip > /var/backups/openvario-backup.tar.gz

On PC:

sudo tar -C '/media/...' -c \
  home/root \
  var/lib/connman \
  etc/opkg \
  etc/dropbear \
  opt/conf | gzip > openvario-backup.tar.gz

Restore

On PC after flashing the image:

sudo tar zxvf openvario-backup.tar.gz -C /media/...
sync

On Openvario:

systemctl disable variod
systemctl disable sensord
hostnamectl set-hostname kedvario
hostnamectl set-chassis embedded
opkg update
opkg install openvario-shell openvario-shell-autostart openvario-compman syncthing --force-removal-of-dependent-packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment