Hot Backup for Frugal Pups Updated 2011-10-1

Miscellaneous tools
Message
Author
User avatar
Baldlygo
Posts: 67
Joined: Mon 21 Mar 2011, 10:41
Location: Le Dorat, France
Contact:

Hot Backup

#21 Post by Baldlygo »

Thanks for quick reply Zbyte - I will be very keen to use it if you do upgrade.

Paul
Lucid 5.20 - my preferred OS on old Dell Inspiron 8000 & Toshiba Tecra M5

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

#22 Post by 8-bit »

Baldygo,
I run Puppy Lucid 520 with half of creation installed.
I do not understand why you say you had to upgrade gtkdialog3 as the Patriot version is already in by default.
Are you sure you have not installed a Pet of the development gtkdialog?

Also, Pupsave-backup works just fine for me.
Remember to save outside of your lupusave file though.


I will check on that to see.
I am back from running Pupsave-backup with the latest gtkdialog.
It works just fine.
So it must be something else you have installed that is causing problems or just maybe you got a bad download of hotbackup.
Try downloading and installing it again.

User avatar
Baldlygo
Posts: 67
Joined: Mon 21 Mar 2011, 10:41
Location: Le Dorat, France
Contact:

Hot Backup - Gtkdialog

#23 Post by Baldlygo »

8-bit - I could not get lameSMBxplorer-0.2.3a to work and the console told me that gtkdialog3-0.7.20 was required. I found the gtkdialog3-07.20-patriot-e-1.pet, installed it and the xplorer and mount worked ok.

Please can you tell me how I can find "the latest gtkdialog" as a pet or how I can install it?

Paul
Lucid 5.20 - my preferred OS on old Dell Inspiron 8000 & Toshiba Tecra M5

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

#24 Post by 8-bit »

Where did you find that gtkdialog3.pet?
I want to check with your pet of it as I still do not think gtkdialog3 is the problem.

I just downloaded the beta version of lameSMBexplorer that you did and it works fine with gtkdialog3 that comes with Puppy Lucid 520.
So it sounds like your problem is somewhere else.
As to the latest version of gtkdialog, check with 01micko as it is a compiled binary file.
But as I said, I cannot seem to duplicate your problem with the applications and the only difference I can see is the strange version of gtkdialog3 you installed.

User avatar
Baldlygo
Posts: 67
Joined: Mon 21 Mar 2011, 10:41
Location: Le Dorat, France
Contact:

Version of gtkdialog

#25 Post by Baldlygo »

8-bit wrote:Where did you find that gtkdialog3.pet?
I want to check with your pet of it as I still do not think gtkdialog3 is the problem.
http://bkhome.org/blog/?viewDetailed=01264 is where I found the pet which solved my previous problem.

Paul
Lucid 5.20 - my preferred OS on old Dell Inspiron 8000 & Toshiba Tecra M5

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

#26 Post by 8-bit »

I have now run both Pupsave-Backup and lameSMBxplorer-0.2.3a on Puppy Lucid 520. Both ran fine with the version of gtkdialog3 that is included in Lucid 520 without installing anything additional.
In the case of lameSMBxplorer, it found my only network share so I assume it works.
And Pupsave-Backup created a pupsave backup just fine in /mnt/home.
Also, as I was saying, make doubly sure you select an area outside of your lupusave/pupsave file as you cannot back up your pupsave to your pupsave with any form of success.

Anyway, I would uninstall the gtkdialog3 PET you got from Barry's site and try again with the one that is part of Lucid.
Also remember that the lameSMBxplorer you installed is in beta and feedback from users is requested as to problems you may encounter.
Have you tried starting it from a terminal/rxvt/urxvt to see if any error messages appear?

User avatar
Baldlygo
Posts: 67
Joined: Mon 21 Mar 2011, 10:41
Location: Le Dorat, France
Contact:

Hot Backup - Gtkdialog

#27 Post by Baldlygo »

I've removed the Gtkdialog pet and lameSMBxplorer version with packetmanager. Then loaded an older version of lameSMBxplorer and that works ok for my network Linkstation.

When I run Pupsave-backup from the console it shows the gui ok - with savefile details but will not let me change anything. (eg location). When I quit the gui disappears but the console tells me it is repeatedly trying to cat a tmp file which does not exist.

I have run in ram and used a simple copy to a usb drive - which did not take too long and maybe is the simplest way to backup my 1G savefile.

Paul
Lucid 5.20 - my preferred OS on old Dell Inspiron 8000 & Toshiba Tecra M5

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

#28 Post by 8-bit »

I am curious as to why you are having problems.
In the first window that shows information, are you able to click on the folder icon and does it open a selection window?
Mine, when I start it looks like the attached jpg file. Pay attention to MB required and make sure it is less than MB available on xxxx.
If the destination does not have room, it will not work.
Attachments
pupsave-backup.jpg
My opening screen for Pupsave-backup.
(34.68 KiB) Downloaded 922 times

User avatar
Baldlygo
Posts: 67
Joined: Mon 21 Mar 2011, 10:41
Location: Le Dorat, France
Contact:

Hot Backup

#29 Post by Baldlygo »

Well now it appears to be working for me :D
May be I did not wait long enough for the folders to show. Also I seemed to have the cat problem Quiting without running backup. Then it would not run a second time without reboot. I'll have another look at that when my first backup is completed.

Thanks again - Paul
Attachments
workinghotbck.jpeg
In progress as I post
(22.23 KiB) Downloaded 1056 times
Lucid 5.20 - my preferred OS on old Dell Inspiron 8000 & Toshiba Tecra M5

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

#30 Post by 8-bit »

Your backed up lupusave file will have date and time appended to the file name. To restore to a backup, you would copy it to your frugal subdirectory using something like
"cp [location of backup]/lupusave.3fs.BKP-11.10.24.09.38 /mnt/home/[puppy directory]/lupusave.3fs".
I would recommend doing this with Puppy booted with pfix=ram added temporarily to the kernel line.

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

#31 Post by 2byte »

Hello Baldygo and 8-bit

I have uploaded a new version. See the first post.


nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#32 Post by nooby »

Crazy noob question. if it is only 3.3 kb big then why does it need to be .tar.gz

during my later 3 years as a perennial noob I barely get what a .tar.gz is
and would not even touch such with a long pole for to not get badly bruised. :)

How big will it get if you let us download it as a pet or what to name it.

is it a pet or script? both maybe. What am I supposed to do with it?

Yes I know it pops up a GUI and it does Back Up that is why I want to
use it. But how does one install it if it is not a pet or sfs?

Edit Thanks for the .pet
Last edited by nooby on Sun 25 Sep 2011, 17:43, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#33 Post by keniv »

Hello 2byte

Have just downloaded and used version 1.1 with 258. It worked well but at the end I could not exit the gui screen as the "quit" button was greyed out. Would not close by clicking on "x" or right click "close" and I had to "kill" it to remove it. The file it generates is shown as executable. Is this correct? I know it would have to be renamed to be used as a savefile. Other than the small problem outlined above I think this is a great little program. At this small size it might even be worth including in any further updates of 258.

Regards,

Ken.

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

#34 Post by 2byte »

Hi nooby

It’s just a bash script. To make it easier for you I have uploaded it as a .pet. It will install the script to /root/my-applications/bin/. You can drag the Pupsave-backup file onto your desktop to make a shortcut to run it.

I had created a menu entry for it but there are problems with the menu system or something in lupu 5.28 and it will not run from the jwm menu there, so there is no menu entry for the installation.


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

#35 Post by 2byte »

Hello keniv

Had the green popup message appeared when you tried to close it? The Quit button should be greyed out only while the backup is in progress. And no, the backed up file should not be executable. See the pic below.

General thoughts: What type of system setup are you running? Partition type you are saving to? Bash and gtkdialog version? Running from a virtual machine? If you are saving to ntfs (not recommended by the way) was the disk defragged first? Save files have been created on vfat (32 bit), ntfs (again, not recommended), ext2 and ext3 partitions.

Maybe there were applications running that interfered?

The script uses bash and gtkdialog (and therefore GTK) and has been tested on the official releases. There are a lot of versions of Puppy/bash/gtkdialog/GTK floating around and it is impossible for me to test on every combination. With over 500 downloads and only a couple of reported problems I am curious as to why it had problems for you.

.
Attachments
properties.jpg
(56.66 KiB) Downloaded 995 times


keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#36 Post by keniv »

Hello 2byte

I am using an old Toshiba laptop, Plll, 800MHz with 320MB ram. I am using a ntfs as I have a copy of XP on this machine. I rarely use XP but I do keep it up to date in terms of win and anti-virus stuff. Defrag says that disc does not need defraged which I think is probably correct as other than what I have mentioned above I have not installed or uninstalled any software since the last defrag. I am booting from a cd. I have both the savefile (ext3) and the .sfs saved to the hd. Bash is version 4.1. Gtkdialog is 0.7.21. The popup message had appeared and I had clicked okay. I did not have any other applications running other than those that control my wifi connection. I did not have a browser running. I have attached what I get when I click on "properties" for the backup file generated. Hope this helps.

Regards,

Ken.
Attachments
backup.png
(57.57 KiB) Downloaded 622 times

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

#37 Post by 8-bit »

2byte, it is not just keniv experiencing the backups being marked as executable.
I just checked all of my backups from both the early and later versions of Pupsave-backup and they all are shown as executable using Properites.
I can live with that, but if you meant for them not to be that is changeable in your script.
So you have two users that have now brought that to your attention.
But I think they are supposed to be that way as the pupave that gets backed up is also shown as executable and on a restore, if it is not, will it mess up booting?
So far, to restore, one copies the backup to the original pupsave name in the related directory.
If the backup file is changed as far as the executable permissions, then restoring to the saved backup will also have those changed permissions and possibly not boot.

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

#38 Post by 8-bit »

As a followup, I wonder what the permissions on keniv's original and my original pupsave files was.
It is easy enough to change them.
To take permissions back to original, you would add a line to Pupsave-backup of "chmod 644 name of pupsave backup file.

As to the numbers, I made a small jpg.
Attachments
mode_graph.jpg
Small jpg showing what numbers mean to change permissions on a file
(22.25 KiB) Downloaded 940 times

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#39 Post by seaside »

Anytime the .xxx extension changes, the filetype icon might change as well. For example any pupsave.2fs will have an "0&1bits" icon. If you rename it to "pupsave.2fsBAK", the icon will change to a "gear" because it no longer ends with ".2fs".

Apparently, any "wrapper" or "container" type file (tar,zip,iso,pet,sfs,2fs, etc.) need not be made executable in order to work their activity of mounting or decompressing.

Out of all my files of this type, only about 30% are marked executable, but they all work anyway.

Cheers,
s

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

#40 Post by 2byte »

Ah, I should have realized what was going on with the permissions. Your file was saved to ntfs and neither ntfs nor vfat preserve Linux permissions! The files inside the savefile are ok, they are isolated in a linux filesystem. Use Puppy and check the permissions on any file in ntfs. They all show as executable to everyone. At any rate, as seaside pointed out, those permissions will not harm the backup.

8-bit, FWIW I would not presume to alter anyone's file permissions, so the script just uses a straight cp command to to do the backup.

keniv, do you have a swap file or swap partition? With only 320 MB ram I wonder if that could be an issue. Otherwise I can't think of anything right now that might cause the dialog to freeze.

Thanks for taking the time to look into this.

@nooby You're welcome. I hope it works well for you.
.


Post Reply