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 Sat 22 Nov 2014, 11:30
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 6 of 6 [88 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6
Author Message
dogle

Joined: 11 Oct 2007
Posts: 353

PostPosted: Sun 13 Nov 2011, 15:32    Post subject:  

For me, living out in the bundu, momentary power interruptions causing loss of RAM contents are a great vexation (BTW my UPS cuts in too slowly to overcome this).

I've taken to running in multisession (i.e. no pupsave), and also keeping a manual backup on HD of selected important files, like bookmarks. Trouble is, one does not wish to shutdown multisession too often and fill up the disk ..... and Sod's Law generally ensures that the next power blip happens just before I was about to do one or the other saving process.

Although this thread started specifically about frugals=pupsaves, I can't help thinking that a means of keeping a backup (other than pupsave?) on HD would be very useful, and would not need to be 'hot=continuous' if the user could, say, hit a button now and then or request periodic automatic backups. I can't however see how this could be made to play nicely in PUPMODE=77, multisession, which has that great advantage of insurance value against the HD self-destruct event ... but it sure would be nice if it could.
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Mon 14 Nov 2011, 06:32    Post subject:  

Something STRANGE! Confused

1. I just now restored a hot backup of Lupu-528.002 that was an update of Lupu-526.

2. When I then booted using the Lupu-528 live CD...
It reported that the lupusave file had previously been a 526 lupusave, and did I want to update it.
I hit enter, it updated, and all is as I'd expect after this update.

3. So how come?
I definitely made of hot backup of a lupusave that had already been updated from version 526 to 528.
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1154
Location: England

PostPosted: Mon 14 Nov 2011, 07:21    Post subject:  

Hi Sylvander,

(a) I have not tried this "hot" backup program, but I have the impression, perhaps wrongly, that a backup would need to be renamed (and possibly moved) before use.

(b) It seems that you frequently choose not to save; so is your "strange" event possibly a combination of not saving since 10th November and (a) above?

Your use of "nosave" options is probably somewhat unusual - so that may make it harder for others to comment.

My regards
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Mon 14 Nov 2011, 09:57    Post subject:  

1. "a backup would need to be renamed (and possibly moved) before use"
Agreed.
(a) I save the backup on a USB2 connected external HDD.
(b) The pupsave+SFS filepair are held on my 2nd internal HDD.
(c) To restore, I boot to a 2nd Puppy that doesn't use the pupsave to be replaced by the backup.
(d) Then I use Xfe to display [side-by-side in its twin file panes]...
The pupsave to be deleted [and I delete that]...
And...
The pupsave which is to replace it...
(I copy that into place, and rename it by removing the date & time extension, so as to leave the name as lupusave.3fs)

2. "is your "strange" event possibly a combination of not saving since 10th November"
(a) Not possible; having updated the lupu-526 version of the pupsave to make it a 528 version..
I MUST have saved as soon as I got to the desktop...
So that the changes to the pupsave would be saved back to the pupsave.
Not just completed in RAM, and then discarded.
Only then would the pupsave be a 528 version.
Don't know for sure if I'm right in thinking that, but I would act upon that belief.
(b) And anyway, there would almost certainly have been good reasons to save the session since then.

3. "Your use of "nosave" options is probably somewhat unusual - so that may make it harder for others to comment"
I think in practice, the difference is that there would be no instant auto-saves every time the smallest change is made...
But there would indeed be saves...
Done manually now and then during the session.
I normally fetch my emails using smm...
View each notification in turn, of posts at the Puppy-forums...
Copy the numbers into the address, and view each post.
Then I would probably save that latest arrangement of Firefox windows....
With that sequence of viewed posts following one-after-the-other in a single window, that could be viewed by using the back/forward arrows.
Hence, I probably save at least once in a session.
Depends whether they're important or interesting posts.
I'll save this. Wink
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1154
Location: England

PostPosted: Mon 14 Nov 2011, 10:23    Post subject:  

Hi Sylvander,

Doubtless you are sure that your restore was not of a pre-528-update backup - so I have no other thoughts about your interesting puzzle, but at least all appears to be normal again.

My regards
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Mon 14 Nov 2011, 12:24    Post subject:  

Yet another twist! Confused

The speaker icon disappeared yet again... Sad

So I restored the backup pupsave yet again...

And all appears well yet again... Smile

I'll keep a close watch on the speaker icon to see if I can notice what it is that makes it disappear.
Back to top
View user's profile Send private message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Mon 14 Nov 2011, 15:22    Post subject:  

Sylvander et al,

PHB is a simple utility. It does not do anything tricky when performing a backup. It is just a straight copy (cp) of the save file, followed by a sync and e2fsck. That’s all. If the data exists on disk in the active save file then it exists in the backup.

_________________

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

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

PostPosted: Mon 14 Nov 2011, 15:37    Post subject:  

Any idea why the Lupu-528.002 disk would see the [backup and restored copy of the] lupusave as a 526 version, and update it...
When the original from which the backup copy was made was not treated so?

Puzzles me. Confused
Back to top
View user's profile Send private message 
2byte

Joined: 09 Oct 2006
Posts: 357

PostPosted: Mon 14 Nov 2011, 15:45    Post subject:  

Nope, not a clue, unless that info was either stored outside the save file or covered up by a whiteout file ( I think that's what they're called ). Did your restored backup have a different name? Just curious.
_________________

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

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

PostPosted: Mon 14 Nov 2011, 19:01    Post subject:  

No, the name of the restored lupusave was identical to the original.
Both lupusave.3fs...
Both 1GB in size.
As you'd expect.
Back to top
View user's profile Send private message 
Sylvander

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

PostPosted: Tue 15 Nov 2011, 05:00    Post subject:  

See this post by rerwin offering a patch PET file that applies some fixes to Lupu-528.002.

And this subsequent post by me reporting HOW I got it to work by restoring a Pupsave Hot Backup, then applying his PET. Very Happy Cool
Back to top
View user's profile Send private message 
cimarron

Joined: 30 May 2013
Posts: 120

PostPosted: Mon 12 Aug 2013, 18:18    Post subject:  

I've been using Pupsave Hot Backup on my Lupu 5.1 and it's performed excellently. It allows backing up a pupsave while in use, and I've never gotten a corrupted pupsave with it. I used to get corruptions often when trying to just copy the pupsave while it's in use.

I noticed, though, that .XLOADED always makes it into my backup somehow. It gets moved to xloadedx as it's supposed to during the backup, but the new pupsave still has .XLOADED in it (causing the warning screen at first boot about X exiting uncleanly).

But I found that if I edited phb_core, adding a "sync" after it moves .XLOADED, it works as it's supposed to. Then .XLOADED doesn't make it into the backup. So this works right for me (starting at line 135):

Code:
    mv /etc/.XLOADED /etc/xloadedx
    sync
    echo "Copying file -- please wait awhile" > $PHB_TMPFILE4
    cp -f -v "${1}" "$destdir" 2> /dev/null
    mv /etc/xloadedx /etc/.XLOADED
    sync

I'm guessing this forces xloadedx to be saved to disk before the savefile is copied.
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 2581
Location: France

PostPosted: Sat 17 May 2014, 11:05    Post subject: PupsaveHotBackup-1.4_20140515  

PupsaveHotBackup-1.4_20140515 # added gettext # added version # improve GUI
Tested with Puppy Precise 5.7.1
Cordialement,
PupsaveHotBackup-1.4.jpg
 Description   
 Filesize   35.51 KB
 Viewed   402 Time(s)

PupsaveHotBackup-1.4.jpg

PupsaveHotBackup-1.4_20140515_NLS.pet
Description 
pet

 Download 
Filename  PupsaveHotBackup-1.4_20140515_NLS.pet 
Filesize  2.44 KB 
Downloaded  107 Time(s) 
PupsaveHotBackup-1.4_20140515.pet
Description 
pet

 Download 
Filename  PupsaveHotBackup-1.4_20140515.pet 
Filesize  5.25 KB 
Downloaded  226 Time(s) 

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 6 of 6 [88 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6
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.0830s ][ Queries: 12 (0.0082s) ][ GZIP on ]