Skip to content

luci: generated backup archive is not directly restorable #8253

@tbrautaset

Description

@tbrautaset

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

screenshots or captures

No response

Actual behaviour

When generating a configuration backup via:

LuCI → System → Backup / Flash Firmware → Actions → Generate archive

the resulting archive is a plain .tar file. Attempting to restore this
archive via the LuCI restore function fails.

If the same archive is manually recompressed to .tar.gz, the restore
succeeds.

Expected behaviour

The backup archive generated by LuCI should be directly restorable using
the same LuCI interface without requiring manual recompression or
post-processing.

Steps to reproduce

  1. Open LuCI
  2. Navigate to System → Backup / Flash Firmware
  3. Click "Generate archive"
  4. Download the generated .tar file
  5. Attempt to restore it via LuCI

Additional Information

Observed on multiple devices, output below:

{
	"kernel": "6.12.63",
	"hostname": "RT-AC3200-DE90",
	"system": "ARMv7 Processor rev 0 (v7l)",
	"model": "ASUS RT-AC3200",
	"board_name": "asus,rt-ac3200",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "SNAPSHOT",
		"firmware_url": "https://downloads.openwrt.org/",
		"revision": "r32644-31cdd13d22",
		"target": "bcm53xx/generic",
		"description": "OpenWrt SNAPSHOT r32644-31cdd13d22",
		"builddate": "1768296024"
	}
}

&

{
	"kernel": "6.12.63",
	"hostname": "RT-AC5300-2660",
	"system": "ARMv7 Processor rev 0 (v7l)",
	"model": "ASUS RT-AC5300",
	"board_name": "asus,rt-ac5300",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "SNAPSHOT",
		"firmware_url": "https://downloads.openwrt.org/",
		"revision": "r32644-31cdd13d22",
		"target": "bcm53xx/generic",
		"description": "OpenWrt SNAPSHOT r32644-31cdd13d22",
		"builddate": "1768296024"
	}
}

What browsers do you see the problem on?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions