PupsaveConfig-2.2.5

A home for all kinds of Puppy related projects
Message
Author
emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

savefile config

#61 Post by emil »

Hello shinobar,

thanks lots for the savefileconfig implementation. I tested it yesterday with a frugal install and it worked flawless for me. I just want to share 2 thoughts that I have. Those are just ideas, no critics and I would like to know what you and maybe others think.

Firstly, would it be an idea to make a simpler "standard" interface and give the Option to call the detailed Menu as "expert" or "advanced".
The "standard" would just offer to create a standard savefile in the same directory of the lupy-511.sfs (I'm not sure about to handle Live CD Mode).
I think new users to puppy linux could be a bit overwhelmed with options and puppy specific terminology.

The second idea is about the Windows installation on NTFS. I had the windows installer discussed a bit on the Sage forum. The myth that Linux can't handle the NTFS filesystem properly seems persistent. Would it be possible that the savefileconfig recognises a premade "blank" savefile (lets say with name blank_savefile.img" and if it finds such a file offers the possibility to use it (rename and mke2fs ...). Then it would be possible that the windows installer creates all puppy files, sort of a "paranoid" mode.

thanks you again,
emil

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#62 Post by jemimah »

Shinobar,

I've had a request for an option to automatically make a backup of the save file on shutdown (or startup, but I think shutdown is easier to implement).

Are you interested in coding this? Or will you merge my patches if I do it? I want to avoid having to patch the shutdown script every time you release an update. :)

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

automatically make a backup of the save file

#63 Post by shinobar »

jemimah wrote:I've had a request for an option to automatically make a backup of the save file on shutdown (or startup, but I think shutdown is easier to implement).

Are you interested in coding this? Or will you merge my patches if I do it? I want to avoid having to patch the shutdown script every time you release an update. :)
Fascinating idea.
We can find some trials on this forum, though i have never tried them yet.
I guess it is not so easy and needs another project.
If you or someone do some improvement on this theme i am willing to implement the code built in.

Some thought:
It may be implemented in /usr/sbin/snapmergepuppy, not in rc.shutdown.
EDIT: snapmergepuppy is effective only for PUPMODE=13.
The init or rc.shutdown is better place to support both PUPMODE=12/13 as jemimah says.
I guess the init at the boot up is good timing.

Some topics:
Last edited by shinobar on Mon 20 Dec 2010, 05:56, edited 2 times in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#64 Post by jemimah »

It needs to be in either the init script or the shutdown script because the save file must be unmounted before copying.

It should be as simple as "cp pupsave.2fs pupsave.2fs.bak" as long as you do it after the unmount. Most of the work is adding the configuration options.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

automatic backup session

#65 Post by shinobar »

jemimah wrote:Most of the work is adding the configuration options.
Right, jemimah.
Where to save, how much space is allowed, how many old to keep, what frequency to be saved, ziped or unziped, we also need how to recover... etc..

I have no experience using similar system on Windows and do not know what options allowed on Windows... :?

Well, will you jemimah or someone start new topic on the automatic backup/recover session?
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#66 Post by 8-bit »

When you talk about incorporating a backup for pupsave's, why reinvent the wheel.
There is already Snap2 and Hotbackup.
I personally use Hotbackup that checks available space, allows one to choose drive/ partition/ directory etc. and even does a file system check of the backup file created.

Hot backup can be found here.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#67 Post by jpeps »

IMHO automatic pupsave backups are a bad idea, other than the auto session backups now in effect. Often something like a broken cups isn't readily noticed, and the danger would be that the unbroken pupsave backup would be copied over. If anything, eliminating all automatic backups seems like a better idea.

Pupsaves shouldn't need to be backed up very often, unlike specific files or directories that might get backed up after every use.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

correction of grammar

#68 Post by don570 »

I have some grammar tips:

'English' must be capitalized

Better to use 'want' than 'like'

'alphanumeric' is usually spelled as one word in North America

The word 'Click' sounds better than the word 'Press' even though
they mean the same thing.


Instead of 'Heavy encrypted' use 'Strong encryption' 'Heavy encryption'
or 'Heavily encrypted'

I corrected some windows with red ink that you should see
http://www.datafilehost.com/download-a130d865.html

_______________________________________________________



Have you thought about creating a history log file of previous
activity. It would be a professional feature!

Just click on an icon to bring up the log file.
It would list info like:

size of save file
where?
Name of file
filetype i.e. ext2
encryption
comments: (Why was it created)
Was it initial?
Time of composition of settings
Actual time of saving
Errors

____________________________________________

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Fluppy 010

#69 Post by shinobar »

Thanks don. I will fix them in next release.

BTW, pupsaveconfig-1.9.4 is now built in Fluppy 010 thanks to jemimah. :!:
You can test the pupsaveconfig really working.
http://www.murga-linux.com/puppy/viewtopic.php?t=56156
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#70 Post by Béèm »

I discovered indeed this pupsave gui in Fluppy 010.
Nice to have all entries to be filled in on one screen.

I use a minimal save size, 32MB, which isn't selectable, but I can change it by hand in the proper field to fill in.

However, I can't indicate to which partition I want to create the save file.
I alwasy set it to /mnt/sda2 which becomes /mnt/home then, but it went to /mnt/sda1 which I only use to boot from (Lin'N'Win method) I don't want my XP partition (/mnt/sda1) to be mounted all the time.
This is more annoying as it forces me to do moving the file by hand.

Could a partition selection be provided also?
(as is in the regular save dialogs)
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

partition selection

#71 Post by shinobar »

Béèm wrote: I alwasy set it to /mnt/sda2 which becomes /mnt/home then, but it went to /mnt/sda1 which I only use to boot from (Lin'N'Win method) I don't want my XP partition (/mnt/sda1) to be mounted all the time.
This is more annoying as it forces me to do moving the file by hand.

Could a partition selection be provided also?
(as is in the regular save dialogs)
Thanks for coming, Béèm.
Booting from sda1, savefile on same place, sda1, is recommended.
But you can change the partition by clicking 'Back' button.
Image

Barry recently changed the dialog, but partition selection was not regular unless you boot off from CD.
Suppose frugal install in sda3, but the recent Barry's dialog offers sda1 as the default.
This is a trap for new comers.
Safest is the all puppy files in a same directory.
Of course expert as you have your choice, and the pupsaveconfig has the path.

By the way, why you cannot boot from sda2? It must be flexible if you are using grub4dos.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

Re: partition selection

#72 Post by Béèm »

shinobar wrote:
Béèm wrote: I alwasy set it to /mnt/sda2 which becomes /mnt/home then, but it went to /mnt/sda1 which I only use to boot from (Lin'N'Win method) I don't want my XP partition (/mnt/sda1) to be mounted all the time.
This is more annoying as it forces me to do moving the file by hand.

Could a partition selection be provided also?
(as is in the regular save dialogs)
Thanks for coming, Béèm.
Booting from sda1, savefile on same place, sda1, is recommended.
But you can change the partition by clicking 'Back' button.
Image

Barry recently changed the dialog, but partition selection was not regular unless you boot off from CD.
Suppose frugal install in sda3, but the recent Barry's dialog offers sda1 as the default.
This is a trap for new comers.
Safest is the all puppy files in a same directory.
Of course expert as you have your choice, and the pupsaveconfig has the path.

By the way, why you cannot boot from sda2? It must be flexible if you are using grub4dos.
I use the Lin'N'Win method and there is lack of space on sda2. I test quite some puppy's.
Also since Barry changed his setup in initrd, I am not free anymore to put save files where I want. Up to that point they were in the root of a partition which became /mnt/home then. This gave me flexibility for testing which I don't have anymore.

I'll explore the back button.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: partition selection

#73 Post by shinobar »

Béèm wrote:I use the Lin'N'Win method and there is lack of space on sda2. I test quite some puppy's.
Then make directories for each puppy on sda1. I recommend all puppy files including save file in one directory. It is easy to manage.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

Re: partition selection

#74 Post by Béèm »

shinobar wrote:
Béèm wrote:I use the Lin'N'Win method and there is lack of space on sda2. I test quite some puppy's.
Then make directories for each puppy on sda1. I recommend all puppy files including save file in one directory. It is easy to manage.
On sda1 I have some 44 directories with puppy's.
The only purpose is to boot from, like from CD. When done sda1 should not be mounted for the sake of a save file as it is also my XP partition and I don't want to take risks for corruption.

Before the change Barry made, a save file could be in the root of any partition, which when mounted became /mnt/home.
In fact during the install process at second boot, the puppy sfs was copied to that partition automatically. Not any more.

It may be easier for noob's to have everything in one directory, but it gives less flexibility.

If everything of a pupy is in the same directory, how would one upgrade the save file f.e.?
Well the answer could be it's not recommended to upgrade a save file.
But people don't want to loose the investment they did before, so upgrading should be part of puppy. An aspect which is not very well handled I think.

Personally I don't need to upgrade as my application environment is outside the save file and available to any puppy I use/try. Just a little script to make the necessary links.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#75 Post by jemimah »

It seems heavy encryption does not work - I haven't tested light encryption yet.
It gives an error about an incorrect password when creating the save file. Both the GUI and Legacy scripts are broken.

Also it shouldn't let you create an encrypted save file with any filesystem execept ext2 - journaling apparently causes a problem with the encryption.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

encryption

#76 Post by shinobar »

jemimah wrote:It seems heavy encryption does not work - I haven't tested light encryption yet.
It gives an error about an incorrect password when creating the save file. Both the GUI and Legacy scripts are broken.
Humm... I will test.
EDIT: confirmed(on fluppy-010). I will check it up.
jemimah wrote:Also it shouldn't let you create an encrypted save file with any filesystem execept ext2 - journaling apparently causes a problem with the encryption.
Don't worry. If the user select ext3/4 and encryption, forced ext2.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pupsaveconfig-1.9.5

#77 Post by shinobar »

Updated to pupsaveconfig-1.9.5. See the top post.
  • Bugfix: was failed encrypted save file.
  • Messages correction thanks to don.
@don
I keep 'no encryption', 'light encrypted' and 'heavy encrypted' because they are the same as the original dialog.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#78 Post by jemimah »

Thanks!

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pupsaveconfig-1.9.6

#79 Post by shinobar »

Updated pupsaveconfig-1.9.6.pet available at the top post.
  • Fixed was getting improper shutdown message when you choose not to save session at shutdown for frugal install on flash. (Thanks to einar reporting the issue)
  • Fixed was sfs file copied at the top directory.
  • Pot file updated.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

einar
Posts: 161
Joined: Fri 12 Nov 2010, 12:22

Re: pupsaveconfig-1.9.6

#80 Post by einar »

shinobar wrote:Updated pupsaveconfig-1.9.6.pet available at the top post.
  • Fixed was getting improper shutdown message when you choose not to save session at shutdown for frugal install on flash. (Thanks to einar reporting the issue)
  • Fixed was sfs file copied at the top directory.
  • Pot file updated.
thanks for helpin out / awesome app :) i will try this today / tomorrow

Post Reply