Hot Backup for Frugal Pups Updated 2011-10-1

Miscellaneous tools
Message
Author
Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#81 Post by Sylvander »

Yet another twist! :?

The speaker icon disappeared yet again... :(

So I restored the backup pupsave yet again...

And all appears well yet again... :)

I'll keep a close watch on the speaker icon to see if I can notice what it is that makes it disappear.

2byte
Posts: 353
Joined: Mon 09 Oct 2006, 18:10

#82 Post by 2byte »

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.


Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#83 Post by Sylvander »

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. :?

2byte
Posts: 353
Joined: Mon 09 Oct 2006, 18:10

#84 Post by 2byte »

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.


Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#85 Post by Sylvander »

No, the name of the restored lupusave was identical to the original.
Both lupusave.3fs...
Both 1GB in size.
As you'd expect.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#86 Post by Sylvander »

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. :D 8)

User avatar
cimarron
Posts: 292
Joined: Fri 31 May 2013, 01:57

#87 Post by cimarron »

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: Select all

    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.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

PupsaveHotBackup-1.4_20140515

#88 Post by ASRI éducation »

PupsaveHotBackup-1.4_20140515 # added gettext # added version # improve GUI
Tested with Puppy Precise 5.7.1
Cordialement,
Attachments
PupsaveHotBackup-1.4.jpg
(35.51 KiB) Downloaded 1054 times
PupsaveHotBackup-1.4_20140515_NLS.pet
(2.44 KiB) Downloaded 525 times
PupsaveHotBackup-1.4_20140515.pet
(5.25 KiB) Downloaded 752 times
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#89 Post by nilsonmorales »

ASRI éducation wrote
PupsaveHotBackup-1.4_20140515 # added gettext # added version # improve GUI
Tested with Puppy Precise 5.7.1
Cordialement,
Please ASRI check your .desktop file
[Desktop Entry]
Encoding=UTF-8
Name=Pupsave hot backup: backup pupsave file
Name[fr]=Pupsave hot backup : sauvegarder le fichier pupsave
Comment=Pupsave hot backup: backup pupsave file
Comment[fr]=Pupsave hot backup : sauvegarder le fichier pupsave
Icon=mini-diskette.xpm
Exec=pupsaverestore
Terminal=false
Type=Application
Categories=Archiving
GenericName=Pupsave hot backup: backup pupsave file
Exec=pupsaverestore Here i guess is pupsave-hot-backup
cheers.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#90 Post by ASRI éducation »

nilsonmorales wrote:Exec=pupsaverestore Here i guess is pupsave-hot-backup
cheers.
You obviously right.
It is surprising that no user has reported before that error.

I sometimes have short memories, I had completely forgotten the pup_save-hot-backup utility.
I took the opportunity to retest.
This works perfectly with a backup file, but it is not compatible with a backup folder.
It would be necessary to update some of the functions.
But I do not believe to be competent enough for this.
2byte no longer present on the forum since 2013, we should find a new competent developer.

Regards,
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#91 Post by musher0 »

Hi folks.

Bumping up an old but useful thread, with many thanks
to forum member r__hugues for remembering

(Suggestion: Browse the thread backwards, if you wish
to get the updates, the corrections and the locales.)

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#92 Post by musher0 »

Hi guys.

A few notes --

1) Double-checking, I realized the *.desktop file had not been corrected
with nilson morales' correction. So here goes.

Please install ASRI's version of the pet, then squish the original
"Pupsave-hot-backup.desktop" file at /usr/share/applications with
the following:
[Desktop Entry]
Encoding=UTF-8
Name=Pupsave hot backup: backup pupsave file
Name[fr]=Pupsave hot backup : sauvegarder le fichier pupsave
Comment=Pupsave hot backup: backup pupsave file
Comment[fr]=Pupsave hot backup : sauvegarder le fichier pupsave
Icon=mini-diskette.xpm
Exec=pupsave-hot-backup
# pupsaverestore
Terminal=false
Type=Application
Categories=Archiving
GenericName=Pupsave hot backup: backup pupsave file
2) For modern Pups (i.e. Pups since late 2014), this utility does not know
what to do with the /mnt/home symlink.

In the 2nd line (please see screen capture above), i.e. the destination line,
the user has to specify the partition if the entry says "/mnt/home".

E.g. if your /mnt/home is /mnt/sda1, you have to fetch sda1 plus the
proper destination directory
in the GTK file list, by clicking on the folder
icon at the right. Similarly, if your /mnt/home is at /mnt/sdb2, you have to
fetch /mnt/sdb2, and so on.

3) This utility copies a live pupsave and adds a time and date stamp to it:
that's all it does. If you need to save space, you have to use zip or PackIt
or your favorite archiver to compress the BCK file it creates, as an
additional step.


4) Finally, as ASRI mentioned above, please keep in mind this utility is for
pupsave files, NOT folders.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

Hot Backup for Frugal Pups

#93 Post by glene77is »

###########################
# pupsave-back-2-tar ("B2T")
# runs on saveFILES and saveFOLDERS.
###########################
Last edited by glene77is on Wed 03 Jun 2020, 16:55, edited 25 times in total.

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

Hot Backup for Frugal Pups

#94 Post by glene77is »

Redacted: 200225

Guys,
... BackUp FileSystem Utility for Puppy Linux.
.
We transferred BackUp-2-Tar Script "B2T"
to
Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
with the title
BackUp Script "pupsave-back-2-tar"
at
http://murga-linux.com/puppy/viewtopic. ... 4#1050224.
.
"B2T" our simple, readable, modifiable backup routine
based on the ideas of "Hot Backup" v.1.2 .

:!: PUPSTATE now controls the program ! :!:
:!: B2T will backup both saveFOLDER and saveFILE.4fs frugal systems. :!:
...
We have transferred files to
http://murga-linux.com/puppy/viewtopic. ... 24#1050224.
.
.
Comments are welcome.
Last edited by glene77is on Wed 26 Feb 2020, 15:25, edited 46 times in total.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

p310don
Posts: 1492
Joined: Tue 19 May 2009, 23:11
Location: Brisbane, Australia

#95 Post by p310don »

An excellent extension of this utility would be to back up the saved save file to an online host, eg your google drive, using the drive command or rclone

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

Ho Backup for Frugal Pups

#96 Post by glene77is »

p310don,
Thanks for the idea,
Last edited by glene77is on Sun 09 Feb 2020, 02:36, edited 1 time in total.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

Re: backups

#97 Post by glene77is »

recycler wrote:Backing up is a Good Thing - .
ReCycler,
Your idea is a "bulletproof" approach to backing up and development.
"Tip of the Hat to you !"
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

Post Reply