Upgrade, squashfs, backup and restore


I'm trying to figure the best way to maintain my r4s router over upgrade / reinstall.

I'm using a squashfs SD Card.

I'm wondering if the /overlay/upper could be used as a base for backup (ie. on a USB/NAS drive).

Can I consider that only /overlay/upper/etc is important ?

Listing installed package

Consider adding "production" package to image

My idea for reinstall/minor upgrade:

  • backup a selected set of files from /overlay/upper/etc
  • list custom installed packages
  • burn a new SD Card from an image
  • reinstall packages (or add them to image)
  • copy the backup on /overlay/upper/etc

What do you think ?

Or should I use sysupgrade (but can it handle upgrade ?)

is this page uptodate (some scripts are very old)

Here are the config files in my current /overlay/upper/etc
(I should not have updated my packages)


Are there some files to exclude in some case ?

Crypto can be regenerate sometime


empty files


What are you trying to accomplish that auc and LuCI Attended Sysupgrade don't already do? Moving across releases, where packages are renamed, added or deleted, or something else?

For backups I use sysupgrade -l to see what's in my backups (augmented with my custom stuff in /etc/sysupgrade.conf), then use sysupgrade -b backup.tgz to do the actual backup (scping it off to my NAS).

1 Like

I'm trying to decypher the doc that is not always uptodate (but well maintained).

But OK I'm start with sysupgrade !

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.