Version number in backup file name

It might be useful to get the version of openwrt in the backup file name generated by luci. That way at a glance, you could see which version the backup is from.

So instead of

backup-<hostname>-<date>.tar.gz

This

backup-<hostname>-<version>-<date>.tar.gz

2 Likes

Just FYI - you can use sysupgrade -b and name the file what you desire.

3 Likes

But it's not practical. Is there any reason not to add the time?

What's not practical?

You mean <hour>:<minute>?

(Wouldn't the file attribute include this?)

In any case, feel free.

There are more steps involved than just pressing a button in LuCI and downloading the file directly to your PC. That method only saves it to your device.

Yes, that would be ideal for making multiple copies on the same day. My use case arose when I wanted to make a change to the router, but before making any changes, I would make a backup in case the new change fails or I don't like it. However, if the new change works as desired, I would make a new backup after finishing, but this would create two files with the same name.

on my windows pc if I download a file with the same name as an existing file into directory it appends a number at the end of the file to indicate the last downloaded file.

That is enough for me to track which one was the latest with the file stamp creation time.
I do backups before and after altering or adding lan to lan vpn segments for our remote 4g sites

1 Like

It's a good idea, this is how Ubiquiti does it for their UniFi Controller.

network_backup_02.18.2025_09-43-AM_v8.6.9.unf

1 Like