Save Folder Backup and Restore
Save Folder Backup and Restore
Update: SaveFolderBackup v1.2 also works with save files. Drag the file into the selection box.
Hint: The best way to use SaveFolderBackup is to backup/restore Puppy X by working from another Puppy Y. Puppy Y could be on a bootable flash drive that also stores the image files.
Doing "hot" backups of save files can lead to big trouble when you try to restore them. But I've had good luck doing it with save folders. YMMV.
----------------------
SaveFolderBackup makes a backup copy of your Puppy save folder by compressing it into a single image file and storing it in another location. You can then restore it if needed. Because the backup image is a file, you can store it anywhere, like on a FAT32 flash drive.
Install the PET and look in the Utility menu.
SaveFolderBackup uses lzop compression. All Puppies have lzop via Busybox, but the "full" version attached below is faster. The PET is built from Debian packages.
You can also use SFB to backup/restore any collection of data. It puts a ".sfb" extension on the image files to distinguish them from other archiving formats.
-----------------
Hint: The best way to use SaveFolderBackup is to backup/restore Puppy X by working from another Puppy Y. Puppy Y could be on a bootable flash drive that also stores the image files.
Doing "hot" backups of save files can lead to big trouble when you try to restore them. But I've had good luck doing it with save folders. YMMV.
----------------------
SaveFolderBackup makes a backup copy of your Puppy save folder by compressing it into a single image file and storing it in another location. You can then restore it if needed. Because the backup image is a file, you can store it anywhere, like on a FAT32 flash drive.
Install the PET and look in the Utility menu.
SaveFolderBackup uses lzop compression. All Puppies have lzop via Busybox, but the "full" version attached below is faster. The PET is built from Debian packages.
You can also use SFB to backup/restore any collection of data. It puts a ".sfb" extension on the image files to distinguish them from other archiving formats.
-----------------
- Attachments
-
- lzop_full_32bit_1.03-1.1.pet
- This is 32bit! See page 2 for the 64bit version.
Renamed 2017-11-09 to be more obvious - (83.9 KiB) Downloaded 401 times
-
- SaveFolderBackup-1.2.pet
- Updated 2017-04-04
Also works with save files - (2.95 KiB) Downloaded 599 times
-
- screenie.png
- (61.33 KiB) Downloaded 1596 times
Last edited by rcrsn51 on Thu 09 Nov 2017, 16:36, edited 27 times in total.
- spiritwild
- Posts: 181
- Joined: Mon 03 Oct 2016, 10:06
I'm Using Snap2 ,dd , plain old tar commands. Although, props to whomever wrote the scripts for "system tar and restore", you are my hero.
I'm open to new and improved Linux black magic though so I shall wait patiently and curiously.
.....wait, are you allowed to be curious in Linux or should I be "cautious?
I'm open to new and improved Linux black magic though so I shall wait patiently and curiously.
.....wait, are you allowed to be curious in Linux or should I be "cautious?
- spiritwild
- Posts: 181
- Joined: Mon 03 Oct 2016, 10:06
Hi rcrsn51,
Installed it on Fatdog64 710 after converting it to fatdog's package format.
Installed lzop from Fatdog's Package manager Gslapt.
Took Backup of my savefolder in /tmp/test and restored it again in /tmp/test.
Used diff -r command to check for any difference, none found.
The app works great and fast on Fatdog.
busybox --help on Fatdog doesn't show lzop in "Currently defined functions". So the app may not work if "Full" lzop is not installed.
Are my assumptions correct?
Also about the line 7 in script export LZOPARG="-3"
I assume this argument changes compression level from 1 to 9.
1 will be faster but low compression, 9 will be slower but highly compressed.
Am I right?
Any chance giving user this selection in GUI?
Thanks again for great small app.
Edit: https://www.lzop.org/lzop_man.php says
Installed it on Fatdog64 710 after converting it to fatdog's package format.
Installed lzop from Fatdog's Package manager Gslapt.
Took Backup of my savefolder in /tmp/test and restored it again in /tmp/test.
Used diff -r command to check for any difference, none found.
The app works great and fast on Fatdog.
busybox --help on Fatdog doesn't show lzop in "Currently defined functions". So the app may not work if "Full" lzop is not installed.
Are my assumptions correct?
Also about the line 7 in script export LZOPARG="-3"
I assume this argument changes compression level from 1 to 9.
1 will be faster but low compression, 9 will be slower but highly compressed.
Am I right?
Any chance giving user this selection in GUI?
Thanks again for great small app.
Edit: https://www.lzop.org/lzop_man.php says
COMPRESSION LEVELS
lzop offers the following compression levels of the LZO1X algorithm:
-3 the default level offers pretty fast compression.
-2, -3, -4, -5 and -6 are currently all equivalent - this may change in a future release.
-1, --fast, can be even a little bit faster in some cases - but most times you won't notice the difference
-7, -8, -9, --best, these compression levels are mainly intended for generating pre-compressed data - especially -9 can be somewhat slow
Decompression is very fast for all compression levels, and decompression speed is not affected by the compression level.
-
- Posts: 807
- Joined: Mon 12 Oct 2009, 17:11
@rcrsn51
Any chance of something similar for savefile, even if it is run from an external puppy?
Any chance of something similar for savefile, even if it is run from an external puppy?
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]
@drunkjedi: Thanks for testing.
Regarding lzop: Fatdog may already have the "full" version on-board. If SaveFolderBackup is working, it must be there. My attached PET is 32bit, so it definitely won't work. Or does Fatdog now accept 32bit apps?
I have a 64bit lzop PET somewhere, if anyone wants it for the 64bit Puppies.
Regarding the "-3" setting: I figured that anyone who wants to tinker with it can easily modify the script. But I will think about a separate config window. In my tests, "-3" was pretty good.
Regarding lzop: Fatdog may already have the "full" version on-board. If SaveFolderBackup is working, it must be there. My attached PET is 32bit, so it definitely won't work. Or does Fatdog now accept 32bit apps?
I have a 64bit lzop PET somewhere, if anyone wants it for the 64bit Puppies.
Regarding the "-3" setting: I figured that anyone who wants to tinker with it can easily modify the script. But I will think about a separate config window. In my tests, "-3" was pretty good.
I didn't install Lzop pet you gave.rcrsn51 wrote:@drunkjedi: Thanks for testing.
Regarding lzop: Fatdog may already have the "full" version on-board. If SaveFolderBackup is working, it must be there. My attached PET is 32bit, so it definitely won't work. Or does Fatdog now accept 32bit apps?
I have a 64bit lzop PET somewhere, if anyone wants it for the 64bit Puppies.
Regarding the "-3" setting: I figured that anyone who wants to tinker with it can easily modify the script. But I will think about a separate config window. In my tests, "-3" was pretty good.
I installed it from gslapt in fatdog.
Then installed and ran your app.
I never tested specific 32bit apps on fatdog.
But apps like yours which are basically just a script, work without fuss in 32 or 64 bit systems.
Just have to see for their dependencies.
B.K. Johnson wrote:@rcrsn51
Any chance of something similar for savefile, even if it is run from an
external puppy?
Hello, B,K, Johnson.rcrsn51 wrote:@B.K. Johnson: Musher0 has a thread where he discusses running a save
file through a compression tool. You could then move the compressed
image to a safe location.
I can't remember having opened a thread on the subject: it's more like I
said it in passing here and there on the forum.
I use SFR's PackIT to back-up my pupsave file. PackIT offers many choices
as to compression. I prefer lzop, with the slider at maximum compression.
Even so, it's quite fast, considering that pupsaves are usually large files.
(A pupsave being a single file, there's no need to tar it beforehand.)
Also, it's safe to use live from within the same Puppy if it's the only
operation going on.
IHTH
@rcrsn51:
Very useful utility you're offering here!
You did well providing the full lzop. IMO the version by busybox is too
skimpy to be really useful....
BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
- spiritwild
- Posts: 181
- Joined: Mon 03 Oct 2016, 10:06
-
- Posts: 807
- Joined: Mon 12 Oct 2009, 17:11
drunkjedi, rcrsn51, musher0
Thank you all. I usually just copy the pupsave when running from another puppy.
@musher0
Good to know that
Thank you all. I usually just copy the pupsave when running from another puppy.
@musher0
Good to know that
I'll be doing a backup tomorrow.it's safe to use live from within the same Puppy if it's the only
operation going on.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]
- spiritwild
- Posts: 181
- Joined: Mon 03 Oct 2016, 10:06
Excellent. Are you doing "hot" backups from a running Puppy?spiritwild wrote:This is my new favorite utility. I've backed up and restored my partition flawlessly multiple times.
--------------------
Here is the 64bit version of lzop-full, made from Debian amd64 packages. It has been tested with some 64bit Puppies (but I can't remember which). If you test it, please report.
- Attachments
-
- lzop_full_64bit_1.03-1.1.pet
- (79.84 KiB) Downloaded 335 times