Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 26 Jun 2017, 22:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Save Folder Backup and Restore
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 11343
Location: Stratford, Ontario

PostPosted: Sun 02 Apr 2017, 09:02    Post subject:  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.

-----------------
screenie.png
 Description   
 Filesize   61.33 KB
 Viewed   544 Time(s)

screenie.png

SaveFolderBackup-1.2.pet
Description  Updated 2017-04-04
Also works with save files
pet

 Download 
Filename  SaveFolderBackup-1.2.pet 
Filesize  2.95 KB 
Downloaded  45 Time(s) 
lzop_full_1.03-1.1.pet
Description  This is 32bit! See page 2 for the 64bit version.
pet

 Download 
Filename  lzop_full_1.03-1.1.pet 
Filesize  83.54 KB 
Downloaded  41 Time(s) 

Last edited by rcrsn51 on Fri 21 Apr 2017, 20:52; edited 26 times in total
Back to top
View user's profile Send private message 
spiritwild


Joined: 03 Oct 2016
Posts: 53

PostPosted: Sun 02 Apr 2017, 09:32    Post subject:  

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? Very Happy
Back to top
View user's profile Send private message 
spiritwild


Joined: 03 Oct 2016
Posts: 53

PostPosted: Sun 02 Apr 2017, 09:34    Post subject:  

I didn't have to wait very long Smile
Back to top
View user's profile Send private message 
spiritwild


Joined: 03 Oct 2016
Posts: 53

PostPosted: Sun 02 Apr 2017, 09:45    Post subject:  

I'm testing this now. Does the window that pops up that says "working..." , continue in the background if you click the ok button or does it halt the program?

I do see izop running in the background.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11343
Location: Stratford, Ontario

PostPosted: Sun 02 Apr 2017, 09:54    Post subject:  

The process should eventually finish on its own, but you won't get a message. I guess I should remove the OK button.

[Edit] Fixed and reposted above.
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Sun 02 Apr 2017, 11:47    Post subject:  

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
Quote:
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.
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 547

PostPosted: Sun 02 Apr 2017, 12:06    Post subject:  

@rcrsn51
Any chance of something similar for savefile, even if it is run from an external puppy?

_________________
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

Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Sun 02 Apr 2017, 12:10    Post subject:  

B.K. Johnson wrote:
@rcrsn51
Any chance of something similar for savefile, even if it is run from an external puppy?
Savefile is already a file, just copy it somewhere.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11343
Location: Stratford, Ontario

PostPosted: Sun 02 Apr 2017, 12:11    Post subject:  

@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.
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Sun 02 Apr 2017, 12:24    Post subject:  

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 didn't install Lzop pet you gave.
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.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11343
Location: Stratford, Ontario

PostPosted: Sun 02 Apr 2017, 12:25    Post subject:  

@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.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11343
Location: Stratford, Ontario

PostPosted: Sun 02 Apr 2017, 12:28    Post subject:  

drunkjedi wrote:
Installed lzop from Fatdog's Package manager Gslapt.

Oops. I missed that!
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 684

PostPosted: Sun 02 Apr 2017, 12:35    Post subject:  

No worries mate.
Also the -3 compression level is good.

And it dicompressed/restored it so fast, I was skeptical. That's why I checked with diff command.

Good app.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10333
Location: Gatineau (Qc), Canada

PostPosted: Sun 02 Apr 2017, 13:08    Post subject:  

B.K. Johnson wrote:
@rcrsn51
Any chance of something similar for savefile, even if it is run from an
external puppy?

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.

Hello, B,K, Johnson.

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. Wink

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
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11343
Location: Stratford, Ontario

PostPosted: Sun 02 Apr 2017, 14:12    Post subject:  

SaveFolderBackup v1.1 posted above. It has a new Abort function in case you make a mistake.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0574s ][ Queries: 14 (0.0051s) ][ GZIP on ]