NASutils Knowledge BaseUnofficialPolski

How do I get back earlier copies of a QNAP's settings?

The firmware makes a copy of the settings every week and before an update, and keeps it in the hidden folder .@backup_config on the default volume. You can also set your own backup schedule in the panel. You can look at one file from them. Restore a running system from the panel, which knows its version and asks what to restore.

Topic: System and sign-in

Warning. A copy holds password hashes, keys and addresses. Do not copy it to a folder anyone but the administrator can open, and delete the unpacked files when you finish.

Steps to restore from the panel

Propose a change

  1. Open Control Panel → System → Backup / Restore → Backup/Restore Settings.
  2. Under Restore System Settings press the restore button and choose a file from your computer or Select file on current device.
  3. shared folder, folder udostępniony
    A folder of a volume that users open over the network.
    In the wizard skip the parts you do not want to change. Skipping accounts also skips shared folders.

The .bak copies in .@backup_config have a different format from the file the panel makes. We did not check whether the panel accepts them directly.

Steps to look at one file over SSH

Propose a change

  1. Connect as root (How do I connect to a QNAP over SSH?). Find the default volume and the list of copies:
    V=$(getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info)
    ls -la "$V/.@backup_config"

    A file is named by number and date, for example 0_20261125_0304.bak. The number 0 is the newest copy.

  2. Create a temporary folder in memory (mktemp makes one that only root can open):
    K=$(mktemp -d /tmp/copy.XXXXXX) && cd "$K"

    A .bak copy is an archive with a password. The command that unpacks it is not given here. The next steps are for the .tar.gz file unpacked into this folder.

  3. Look at the list and take one file out, for example Samba's settings:
    tar -tzf 0_20261125_0304.tar.gz | head
    tar -xzf 0_20261125_0304.tar.gz etc/config/smb.conf
  4. Compare it with the current one without replacing anything: diff etc/config/smb.conf /etc/config/smb.conf.
  5. Delete the folder: cd / && rm -r "$K".

Check that it worked

Propose a change

diff shows the differences in your file.

What not to do

Propose a change

  • Do not copy the backup to Public or any other shared folder.
  • Do not replace the whole of /etc/config, or raid.conf and shadow, with files from another day.
  • Do not restore a copy from another model or version without checking that the panel accepts it.
QuTS hero
QNAP's NAS system on ZFS.

Checked: 25 November 2026, QTS 6.1.0.3656 (beta) and QuTS hero h6.1.0.3656 (beta). We did not restore a copy; we tested the archive without writing to disk.

All questions