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 Fri 19 Sep 2014, 04:12
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Hot Backup for Frugal Pups Updated 2011-10-1
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 6 [88 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
8-bit


Joined: 03 Apr 2007
Posts: 3368
Location: Oregon

PostPosted: Tue 27 Sep 2011, 02:20    Post subject:  

I found something interesting in your Pupsave-backup file.
I know it works as is, but the line "<label>"<span color='blue'>Pupsave file to backup</span>"</label>" according to another script on span is wrong.
It should be "<label>"<span color= '"'blue'"'> for that part of the span code.
That is color= single quote, double quote,single quote,color,single quote, double quote, single quote.

At least, when I tried that line in a short script, it kicked out a gtk error.
Maybe I am missing something in looking at the code.

Also, I get the same file named 0 when I run the Pupsave-backup script.
Could it be a matter of a variable not being populated that is the path/filename of one of the temp files?

Last edited by 8-bit on Tue 27 Sep 2011, 20:48; edited 1 time in total
Back to top
View user's profile Send private message 
keniv

Joined: 06 Oct 2009
Posts: 196
Location: Scotland

PostPosted: Tue 27 Sep 2011, 14:38    Post subject:  

Hello 2byte

I installed your new .pet but I am now having a different set of problems. It opens extremely slowly. When setting the path to where the backup is to be stored each page again is very slow to open. This was not the case with the original script. I decided at this point something must be wrong and did not try to make a backup. It also installed a file named "0" in/my-applications/bin (see attached).
I found a version of this file after deleting the previous script but at that time did not know where it had come from. I had trouble deleting this file. Should this file be created? I have come to the conclusion that this is not going to work with my set up although I still don't know why. I think I will have to go back to manual backups.

Thanks again for trying to get it to work with my setup.

Regards,

Ken.
bin.png
 Description   
 Filesize   28.27 KB
 Viewed   723 Time(s)

bin.png

Back to top
View user's profile Send private message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Tue 27 Sep 2011, 21:28    Post subject:  

Hi keniv

I want to thank you for spending your time on this. It has been extremely helpful to me for getting bash 4 compatibility.

I never noticed the 0 file until you mentioned it. It seems that bash 4 doesn't like 'if' comparisons that have a > as part of the equation. At least not the way I had constructed them in bash 3. That caused the latest problem with the 0 file. It was being recreated every 0.2 seconds. No wonder it was hard to delete while the gui was running. Ditto for the slow operation, which was not noticeable on my rig. This is fixed now but I think I'll wait before uploading it.

With this bash 4 business it seems to me like every time one bug is fixed, two more are created.

Once again, thanks Ken
Regards,
2byte

_________________

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


Joined: 23 May 2010
Posts: 2452
Location: near here

PostPosted: Wed 28 Sep 2011, 09:17    Post subject:  

added software to wiki under name PupsaveBackup
http://puppylinux.org/wikka/PupSaveBackup

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
keniv

Joined: 06 Oct 2009
Posts: 196
Location: Scotland

PostPosted: Wed 28 Sep 2011, 11:14    Post subject:  

Hello 2byte

Thanks for your reply and explanation of what was going on. I am glad that it may not be a peculiarity of my system that has been causing the problems I have been having. When you are ready to upload again I will have another go at getting it to work on my system. I still think its a great idea.

Regards,

Ken.
Back to top
View user's profile Send private message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Sat 01 Oct 2011, 21:39    Post subject:  

Version 1.3 uploaded. See the first post.
_________________

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

Joined: 06 Oct 2009
Posts: 196
Location: Scotland

PostPosted: Sun 02 Oct 2011, 15:53    Post subject:  

Hello 2byte

Have just installed v1.3. I am pleased to say that it worked without any of the problems I had previously including shutting down the gui.

Regards,

Ken.
Back to top
View user's profile Send private message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Sun 02 Oct 2011, 18:26    Post subject:  

That's great Ken Smile

Wouldn't have got there without your help!

2byte

_________________

Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3368
Location: Oregon

PostPosted: Sun 02 Oct 2011, 18:30    Post subject:  

I second that! Revision 3 worked fine for me also.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1293
Location: Germany

PostPosted: Mon 03 Oct 2011, 04:54    Post subject:  

Well done 2byte.

Today it's the first time that I've tested your program, and it works fine.

Till now I've just copied my save file in use, took care that no other prog was running, and it worked flawlessly since years. But with your script it works much more comfortably.

It works also on reiserfs formatted partitions. Very Happy

For myself I like to be able to mount my save files without renaming them. So I will try to change your code, that the save file is named e.g.
lupusave-compileBKP-11.10.03-10.25.3fs.

Then maybe to get it working with my reiserfs formatted save files (.rfs).

Well, I'll see. Wink

Thank you for this. Very Happy

Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.

Last edited by rhadon on Mon 03 Oct 2011, 14:33; edited 1 time in total
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3368
Location: Oregon

PostPosted: Mon 03 Oct 2011, 12:07    Post subject:  

rhadon,
A little further down the list in this section is a utility called "Script makes dated backup files".
It makes backups in the format that you showed with the date in the middle but does not include "BKP" in the filename.
Back to top
View user's profile Send private message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Mon 03 Oct 2011, 13:45    Post subject:  

8-bit, and rhadon, thanks for the feedback. I can breathe a little easier now.

Quote:
For myself I like to be able to mount my save files without renaming them. So I will try to change your code, that the save file is named e.g.
lupusave-compileBKP-11.10.03-10.25.3fs.

You know, you are the fourth person in the last week to mention leaving the file extension intact. Way back when I first wrote this I think I did leave the extension on, but the backup ended up being listed as a mountable pupsave at boot or Puppy would mount the first one it happened to find. At least that’s what I seem to recall but my memory is kind of cloudy nowadays. Anyway now that I think about it, the newer Woof Puppies look for a specific beginning of the pupsave name. So inserting the backup tag before the extension should still work for newer pups.

I think that just might be in the next update. Maybe not. Backward compatibility is important to me so it will take some time to test. Backup utilities seem to be springing up right and left Smile

2byte

_________________

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


Joined: 27 Mar 2008
Posts: 1293
Location: Germany

PostPosted: Mon 03 Oct 2011, 14:27    Post subject:  

Thank's 8-bit,

I've overseen this thread. Embarassed

But anyway, it's too late, I got it working in Hot Backup. Laughing

Building such a script is far beyond my skill, but finding out how a given script works or changing a little bit, that's my way of learning.

In phb_core I replaced in function PHB_Bkpfilename() ~line #83
Code:
a="`expr "${1}" | awk -F / '{print $NF}'`".BKP-`date +%y.%m.%d-%H.%M`


with
Code:
file="`expr "${1}" | awk -F / '{print $NF}'`"
num=$[${#file}-4]
ext=${file:$num}
name=${file:0:$num}
a=$name".BKP`date +%y%m%d-%H.%M`"$ext

And something similar in function PHB_Backup().

Maybe it's not the best way but it seems to work.

Result for lupusave-compile.3fs:
lupusave-compile.BKP111003-17.58.3fs

Tested in Lupu-525 and 528.

@ 2byte
No matter what you are doing, some people will love it and some are moaning. Rolling Eyes
Different people, different needs and different expectations.

I don't know what's the best for most.

I'm just trying to learn a little bit. For now I'm lost in trying to understand how the validation of the save file works. It's e.g. completely different to the way, the init script validates. Evil or Very Mad Laughing

But anyway, thank you Wink

Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.

Last edited by rhadon on Mon 03 Oct 2011, 14:55; edited 1 time in total
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3368
Location: Oregon

PostPosted: Mon 03 Oct 2011, 14:52    Post subject:  

2byte,
If you change the pupsave backup file format I will have to do a rewrite of my PupsaveRestore.sh as it expects to find the backup file name in the format you now have.
Also, getting it to work with both types of a backup file as to the name format would take further work.
I already have the code to remove the date-time from the filename of a backup with the format being "pupsave.BAK-11.10.03-10.30.sfs".
But it would take some additional checks to see which format the backup name was.

Anyway, I always figured "If it ain't broke, don't fix it."

I already know that if you try to mount the pupsave file of the same name as the one you have in use, it will not work.
But a dated backup pupsave with the extension at the end allows the user to mount it, maybe for the purpose of retrieving a file from it.
So there are some advantages I guess.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3444
Location: West Lothian, Scotland, UK

PostPosted: Thu 10 Nov 2011, 10:21    Post subject:  

I LOVE this program. Very Happy Cool

Having used it only once so far, first impressions are excellent.

Any chance of a "Puppy Hot Restore"?

Or a restore feature included in "Puppy Hot Backup"?

i.e.............."Puppy Hot Backup/Restore"?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 6 [88 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 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.2061s ][ Queries: 12 (0.0339s) ][ GZIP on ]