root@vuultimo4k:~# opkg list-installed| grep nfs
nfs-utils - [COLOR="#FF0000"]2.5.4-r1[/COLOR]
nfs-utils-client - [COLOR="#FF0000"]2.5.4-r1[/COLOR]
packagegroup-base-nfs - 1.0-r83
root@vuultimo4k:~#
root@vuultimo4k:~# opkg list-installed | grep nfs
nfs-utils - [COLOR="#FF0000"]2.5.3-r1[/COLOR]
nfs-utils-client - [COLOR="#FF0000"]2.5.3-r1[/COLOR]
packagegroup-base-nfs - 1.0-r83
root@vuultimo4k:~#
Code:https://bugzilla.redhat.com/show_bug.cgi?id=1979816

def keyResstore(self):
self.sel = self["list"].getCurrent()
if self.sel:
if path.exists("/tmp/ExtraInstalledPlugins"):
remove("/tmp/ExtraInstalledPlugins")
if path.exists("/tmp/backupkernelversion"):
remove("/tmp/backupkernelversion")
[B] self.Console.ePopen("tar -xzvf " + self.BackupDirectory + self.sel + " tmp/ExtraInstalledPlugins tmp/backupkernelversion tmp/backupimageversion -C /", self.settingsRestoreCheck)
[/B] else:
self.session.open(MessageBox, _("There is no backup to restore."), MessageBox.TYPE_INFO, timeout=10)
else:
self.session.open(MessageBox, _("Backup in progress,\nPlease wait for it to finish, before trying again."), MessageBox.TYPE_INFO, timeout=10)
def settingsRestoreCheck(self, result, retval, extra_args=None):
[B] if path.exists("/tmp/backupimageversion"):
with open("/tmp/backupimageversion", "r") as fd:
imageversion = fd.read()
[/B] print("[BackupManager] Backup Image:", imageversion)
print("[BackupManager] Current Image:", about.getVersionString())
if imageversion == about.getVersionString() or isRestorableSettings(imageversion):
print("[BackupManager] Stage 1: Image ver OK")
self.keyResstore1()
else:
self.session.open(MessageBox, _("Sorry, but the file is not compatible with this image version."), MessageBox.TYPE_INFO, timeout=10)
else:
self.session.open(MessageBox, _("Sorry, but the file is not compatible with this image version."), MessageBox.TYPE_INFO, timeout=10)

"tar -xzvf " + self.BackupDirectory + self.sel + " tmp/ExtraInstalledPlugins tmp/backupkernelversion tmp/backupimageversion -C /"
The -C option puts them in / if my limited unix knowledge is correct.
I always restore settings after flashing and never see the problem you describe.
root@gbue4k:/media/hdd/backup/tt# tar -xzvf ./z1.tar.gz tmp/backupimageversion -C /
tmp/backupimageversion
root@gbue4k:/media/hdd/backup/tt# ls -l tmp/backupimageversion
-rw-r--r-- 1 root root 3 Jul 15 22:29 backupimageversion
root@gbue4k:/media/hdd/backup/tt# ls -l /tmp/backupimageversion
ls: /tmp/backupimageversion: No such file or directory

root@gbue4k:/media/hdd/backup/tt# ls -l /tmp/backupimageversion tmp/backupimageversion
ls: /tmp/backupimageversion: No such file or directory
ls: tmp/backupimageversion: No such file or directory
root@gbue4k:/media/hdd/backup/tt# [B]tar -C / -xzvf ./z1.tar.gz tmp/backupimageversion[/B]
tmp/backupimageversion
root@gbue4k:/media/hdd/backup/tt# ls -l /tmp/backupimageversion tmp/backupimageversion
ls: tmp/backupimageversion: No such file or directory
-rw-r--r-- 1 root root 3 Jul 15 22:29 /tmp/backupimageversion
tar -xzvf ./z1.tar.gz tmp/backupimageversion -C / <<<< does not work
tar -C / -xzvf ./z1.tar.gz tmp/backupimageversion <<<< works
...
Ran into a problem with 'restore settings' on the 5.5.014.004, and surprisingly with 5.5.013.016
Getting a message about "Sorry, but the file is not compatible with this image version."
Anyone getting this, or have I missed something?
Just looked at the code in BackupManager.py on my box, and I do not understand how it has ever worked!`
The first time I flashed a 5.5 image, it offered to restore a backup, but then I got that exact message when I selected a 5.4 backup file. I ended up not restoring and set up from scratch.

@white_westie, Have you tested this in the file? Will need testing in Py2 and Py3?

I don't understand this. I just tried 5.3 and 5.4 backups and they work. Should be able to restore any backup from 4.2 onwards.
https://github.com/OpenViX/vix-core/blob/master/src/BackupManager.py#L74
Yes, works perfectly on P2 version - it uses busybox tar, whereas P3 version uses GNU tar!
root@vuultimo4k:~# which tar
/bin/tar
root@vuultimo4k:~# ls -l /bin/tar
lrwxrwxrwx 1 root root 19 Jul 16 09:12 /bin/tar -> /bin/busybox.nosuid
root@vuultimo4k:~# tar
BusyBox v1.33.1 (2021-07-10 12:00:30 UTC) multi-call binary.
Usage: tar c|x|t [-ZzJjahvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [OPTION]... [FILE]...
Create, extract, or list files from a tar file
root@et10000:~# which tar
/bin/tar
root@et10000:~# ls -l /bin/tar
lrwxrwxrwx 1 root root 19 Jun 24 17:18 /bin/tar -> /bin/busybox.nosuid
root@et10000:~# tar
BusyBox v1.31.0 (2021-05-18 20:24:21 UTC) multi-call binary.
Usage: tar c|x|t [-ZzJjahvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [--exclude PATTERN]... [FILE]...
Create, extract, or list files from a tar file
I don't understand this. I just tried 5.3 and 5.4 backups and they work. Should be able to restore any backup from 4.2 onwards.
https://github.com/OpenViX/vix-core/blob/master/src/BackupManager.py#L74

How do you work that out, this is what I get (2 different boxes with slightly different usage lines)....
P3
Code:root@vuultimo4k:~# which tar /bin/tar root@vuultimo4k:~# ls -l /bin/tar lrwxrwxrwx 1 root root 19 Jul 16 09:12 /bin/tar -> /bin/busybox.nosuid root@vuultimo4k:~# tar BusyBox v1.33.1 (2021-07-10 12:00:30 UTC) multi-call binary. Usage: tar c|x|t [-ZzJjahvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [OPTION]... [FILE]... Create, extract, or list files from a tar file
P2
Code:root@et10000:~# which tar /bin/tar root@et10000:~# ls -l /bin/tar lrwxrwxrwx 1 root root 19 Jun 24 17:18 /bin/tar -> /bin/busybox.nosuid root@et10000:~# tar BusyBox v1.31.0 (2021-05-18 20:24:21 UTC) multi-call binary. Usage: tar c|x|t [-ZzJjahvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [--exclude PATTERN]... [FILE]... Create, extract, or list files from a tar file
root@gbue4k:~# which tar
/bin/tar
root@gbue4k:~# ls -l /bin/tar
lrwxrwxrwx 1 root root 12 Jul 17 08:22 /bin/tar -> /bin/tar.tar
root@gbue4k:~# tar --version
tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.

So it's down to the boxes we're using.![]()