Using F96 CE (v3) frugal.
I previously posted about a couple of minor issues in pupsave-backup https://www.forum.puppylinux.com/viewtopic.php?t=8414 but since then I have noticed something more important - so created this new topic.
I believe there are 4 issues with the pupsave-backup script - 3 of these are easily fixed and I have created a solution for each of them. However, I am absolutely sure that my solution could be replaced with a more elegant solution by someone with greater scripting skill than I have.
The 4th issue is something for which I do not understand the cause, and therefore not something I can fix. It requires analysis by someone with a much greater level of knowledge than myself. I believe everyone who relies on these backups to restore their system when needed is at RISK!
Issue:
- When the script is run an initial message "saving session" is displayed when the snapmergepuppy command is executed before the backup commences. On my system, this message remains displayed even after the backup is completed successfully. It should close.
I have made a change to remove this message once the backup actually starts.
- When the initial GUI is launched it shows an "Information" section at the bottom which includes the name which will be given to the backup file which is to be created. The display of the name is truncated if the save file to be backed up has a long name.
I have made a change to allow double height for the display of this save file name, and it will wrap to fit.
- The user can choose to also compress the backup file. But, if this option is chosen, the user selected backup location path is ignored, and the file is created in /mnt/home regardless of the selected location.
I have made a change to ensure the user selected backup location is used.
I have attached a copy of my amended pupsave-backup script. All changes made have been commented with ##mow9902.
This might be a 'thought starter' for an experienced scripter to make some improvements.
4. MOST IMPORTANT
The whole purpose of creating a backup is to be able to use it to recover your system in the event that the current save file/folder becomes corrupted for some reason.
I have tested this using a non-compressed backup folder from this script (and also creating a backup myself manually with tar) and all is good.
BUT - not the same with a compressed backup folder.
After many,many,many attempts using both this script, and also manual 'compression' commands from the terminal (including the use of tar, and mksquashfs), I have found that if I 'extract' the backup save folder from the compressed folder created, rename it, move it into /mnt/home and then select it when rebooting the system, the resulting system is SCREWED up. It boots ok, and on first glance appears normal - but it immediately becomes obvious there is some significant problems - quickly identified because there is no 'sound' icon in the system tray, and the firewall is turned off. Attempts to start pulse or the firewall produce errors. All of this is WAY beyond my ability to diagnose.
I have tried tar to a ext2 disk and a NTFS disk - both with with the same result.
I have tried first copying savefile to a ext2 disk and a NTFS disk - and then doing tar on the copy - same result.
I don't know if this is just a problem on my system, or if it applies to all systems - but for now I have to conclude that the system cannot be successfully restored from a compressed backup file.
I really need someone to see if they can reproduce this problem, and/or give me some clue as to what I might be doing wrong.
Has anyone recently tested by rebooting their system from a compressed backup folder/file?
I apologize for the rather long post. Thanks in anticipation.
17 Oct 2024 - Attempted some improvements
23 Oct 2024 - Minor change - create lock file in application directory instead of /tmp (which may differ on some systems)