Create/restore backup archive from CLI

sysupgrade -b /tmp/backup-${HOSTNAME}-$(date +%F).tar.gz

        -r | --restore-backup <file>
                     restore a .tar.gz created with sysupgrade -b
                     then exit. Does not flash an image. If file is '-',
                     the archive is read from stdin.
2 Likes