Upgrade of snapshot not possible due to problem with files.snar (Errno 2 - file not found) + SOLUTION
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sbackup |
Won't Fix
|
High
|
Unassigned |
Bug Description
First of I would like to express that I'm quite disappointed by sbackup not being backwards compatible with 1.4 snapshots. When you are in need to restore a snapshot you more often than not don't have time for such stuff as "converting backups", which I generally think is a STUPID idea.
PLEASE MAKE THE RESTORE BACKWARDS COMPATIBLE!!!
Solution to the problem:
change line 1069 of /usr/share/
fd = open(self.snpfile, 'w')
to
fd = _FOP.openfile_
/home/mehm/
/dev/sdf1 931G 772G 113G 88% /media/edb
Permissions:
/media/
drwxrwxr-x 9 mehm mehm 4096 Mai 17 14:47 edb
/media/edb/
drwxrwxr-x 2 mehm mehm 4096 Mai 17 18:42 2012-05-
/media/
insgesamt 143976920
drwxrwxr-x 2 mehm mehm 4096 Mai 17 18:42 .
drwxrwxr-x 9 mehm mehm 4096 Mai 17 14:47 ..
-rw-rw-r-- 1 mehm mehm 221 Mai 17 14:03 excludes
-rw-rw-r-- 1 mehm mehm 0 Mai 17 18:42 excludes.list
-rw-rw-r-- 1 mehm mehm 0 Mai 17 18:42 files.snar
-rw-rw-r-- 1 mehm mehm 147424042177 Mai 17 16:51 files.tar.gz
-rw-rw-r-- 1 mehm mehm 3352221 Mai 17 14:03 flist
-rw-rw-r-- 1 mehm mehm 6 Mai 17 18:42 format
-rw-rw-r-- 1 mehm mehm 1511291 Mai 17 14:03 fprops
-rw-rw-r-- 1 mehm mehm 3352221 Mai 17 18:42 includes.list
-rw-rw-r-- 1 mehm mehm 59192 Mai 17 16:51 packages
-rw-rw-r-- 1 mehm mehm 560 Mai 17 14:03 partitions
-rw-rw-r-- 1 mehm mehm 20 Mai 17 18:42 upgrade
2012-05-17 18:42:16,361 - DEBUG in restoregui.
2012-05-17 18:42:16,361 - INFO: Upgrading snapshot '2012-05-
2012-05-17 18:42:16,361 - INFO: Umstellung auf v1.5: 2012-05-
2012-05-17 18:42:16,369 - INFO: file://
2012-05-17 18:42:16,370 - INFO: renaming file.tgz to file.tar.gz
2012-05-17 18:42:16,371 - INFO: Creating includes.list
2012-05-17 18:42:25,866 - INFO: Creating empty excludes.list
2012-05-17 18:42:25,867 - INFO: Creating 'format' file
2012-05-17 18:42:25,867 - INFO: Creating the SNAR file
2012-05-17 18:42:25,867 - ERROR in restoregui.
Traceback (most recent call last):
File "/usr/share/
um.
File "/usr/share/
self.
File "/usr/share/
snarfileinf
File "/usr/share/
self.
File "/usr/share/
fd = open(self.snpfile, 'w')
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 'file:/
2012-05-17 18:42:25,879 - DEBUG in restoregui.
2012-05-17 18:42:25,880 - INFO: Ungültige Sicherung `lost+found` gefunden: Name der Sicherung ist nicht gültig.
2012-05-17 18:42:25,884 - INFO: Ungültige Sicherung `2012-05-
2012-05-17 18:42:25,886 - INFO: Ungültige Sicherung `2012-03-
2012-05-17 18:42:25,887 - INFO: Snapshot `2012-05-
Changed in sbackup: | |
importance: | Undecided → High |
status: | New → Won't Fix |
Hello Thomas,
thank you for using sbackup and reporting this issue!
You are absolutely right! Touching existing snapshots is a BAD idea and upgrading them is highly not recommended.
> PLEASE MAKE THE RESTORE BACKWARDS COMPATIBLE!!!
I am working on this and there is basic support for reading and writing arbitrary snapshot versions in my current development branch. Unfortunately, I'm short on time and cannot tell any release date when this will be finished. Help is highly appreciated.
Thank you for your help and sorry for any inconvenience!
Best regards,
Jean-Peer