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 Wed 20 Aug 2014, 20:32
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Upgrade / Migration tool
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [27 Posts]   Goto page: Previous 1, 2
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2380
Location: Germany

PostPosted: Sat 03 Mar 2012, 03:57    Post subject:  

Update Version 0.4 available at two posts above!
_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4230
Location: Gatineau (Qc), Canada

PostPosted: Sat 03 Mar 2012, 05:41    Post subject:  

Hi, RSH.

You're a real 2-legged Puppy! People offer you a bone and you keep at it until it's clean! Very Happy

Many thanks for this script!

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Sat 03 Mar 2012, 09:18    Post subject:  

I've attached a file that contains lots of blank/empty stuff, organized as it appears when installed... This includes settings for many popular apps, font + GTK settings, some puppy settings, and so on... I probably missed a load of stuff as well...

The idea will be something like:

- add the attached stuff to a new folder, ~/.migration_tool/
- run a 'migration_tool' script, which does:

Code:
  - copy ~/.migration_tool/ to ~/.migration_tool/[date]/
  - if exists in ~/.migration_tool/[date], find it in main fs
  - if found in main fs, replace existing equivalent in ~/.migration_tool/[date]/
  - package up as .tar.gz, to be added later


I may have a go at this soon... Will need to go around installing a lot of apps to test it tho Rolling Eyes
BKP_FILES.tar.gz
Description 
gz

 Download 
Filename  BKP_FILES.tar.gz 
Filesize  1.82 KB 
Downloaded  240 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2380
Location: Germany

PostPosted: Sat 03 Mar 2012, 14:41    Post subject:  

musher0 wrote:
Hi, RSH.

You're a real 2-legged Puppy! People offer you a bone and you keep at it until it's clean! Very Happy

Many thanks for this script!

It's just because of two things:

1. I am a puppy addict. Very Happy
2. I do learn from every single line Very Happy

The "offered bone" is mostly inspiration to me. As an Artist (i would like to say we are all artists) i am in the need for inspiration (offered bones). Cool

Without that inspiration nothing would exist! Exclamation

So, therefor, the credits are always going to those who made suggestions and offering ideas. Smile
The code is surely important but it is not only the code! Cool

Have a nice weekend

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
p310don

Joined: 19 May 2009
Posts: 691
Location: Brisbane, Australia

PostPosted: Sun 04 Mar 2012, 10:09    Post subject:  

I feel special. Embarassed

I sprout an idea, and you guys come up with the beginnings of a solution. Love it. I don't have any coding, nor barely command line skills, so I am really relying on you other guys skills to do this. Thanks

RSH - I really like where you are headed with this. I think your vision is slightly different to mine, but you have created a perfect foundation to build upon I think. My only suggestion / criticism / room for improvement at this point, would be to ask, "is there a reason you chose to default to saving to /root?" I might have thought that saving outside the save file /mnt/home would make more sense to copy it to new save file.

sc0ttman - As I said, I don't code, so I'm struggling to keep up with what you have offered. If I get it correctly, your idea is to replace those bits in your attachment, with the equivalent bits from the original save file, then compress that into one big .tar.gz labelled by date? Then you can uncompress that into the new save file, replacing the settings?

For both ideas offered, is there a way to make it easy for a user to do all this from the new puppy. Currently, RSH's works from the old save file to make backups which can then be unpackaged into the new. If this tool was run from the new Puppy save file, located the old save file, copied the bits out of it and replaced the new, default settings with the old, personalised settings it would be perfect.

Thinking out loud here, if running from the new puppy installation, creating a tar.gz is almost pointless as an unnecessary step. Simply copy the old and overwrite the new files should be all that is needed. For email and browsers, the offline storage / cache could be huge, thus making compressing very time consuming.
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Sun 04 Mar 2012, 12:10    Post subject:  

p310don wrote:
sc0ttman - As I said, I don't code, so I'm struggling to keep up with what you have offered. If I get it correctly, your idea is to replace those bits in your attachment, with the equivalent bits from the original save file, then compress that into one big .tar.gz labelled by date? Then you can uncompress that into the new save file, replacing the settings?

Exactly.

But about the GUI part, as I say, I *may* make one of these things, I may not... I get lazy lol ...

I don't see it mounting a save file, ripping out old parts and sticking them in the current (loaded) save file... I see a GUI tool with 2 options: 'create backup' and 'import backup' ... The GUI tool would need to be installed on the old and new puppy to work..

But at the very least, you can open up the BKP attachment I posted, and add to it the other files or folders which you would want to be backed up... At least that way we all have access to a 'shell' that can show what is able (and desired) to be backed up..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2380
Location: Germany

PostPosted: Mon 05 Mar 2012, 20:46    Post subject:  

p310don wrote:
RSH - I really like where you are headed with this. I think your vision is slightly different to mine, but you have created a perfect foundation to build upon I think.

My vision (by reading your suggestions) was just an easy tool to make backups of directories and it is based on a static script, that i do (now did) use to make backups of directories where i did made changes while working on the new LazY Puppy iso.. To make such an application for the use at single files it would be a lot more programming work to do. I am not really a bash/shellscript programmer (i do still learn). I am sure, users like scOttman, jpeps or sunburnt and surely some more would be the right programmers on such a project.

But, to make backups of directories would always be a good point where to start at - i thought so. Smile

p310don wrote:
My only suggestion / criticism / room for improvement at this point, would be to ask, "is there a reason you chose to default to saving to /root?" I might have thought that saving outside the save file /mnt/home would make more sense to copy it to new save file.

I did choose /root as default, because i do not know what is available (hd, flash, usb). Directory /root is always there. It would surely make more sense to save it outside the save file. Cool

I did update the download post. Now is version 0.5 and it has German and English localisations. Also the save path is now always saved, so if you change the save path it will be the default save path at next start. Cool

Note: the program does not proof the path's existence. So, this needs your attention, to make sure, the chosen/entered path does exist. Exclamation

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2380
Location: Germany

PostPosted: Tue 06 Mar 2012, 01:01    Post subject:  

Update Version 0.6 available!
http://murga-linux.com/puppy/viewtopic.php?p=609134#609134

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2380
Location: Germany

PostPosted: Sat 10 Mar 2012, 09:36    Post subject:  

Update Version 0.9 available!
http://murga-linux.com/puppy/viewtopic.php?p=609134#609134

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4230
Location: Gatineau (Qc), Canada

PostPosted: Thu 22 Mar 2012, 04:28    Post subject:  

Hello, everyone.

Not to diminish RSH's excellent work in any way, but it occurred to me that there is another, perhaps more simple and "sledgehammer" way to do this:

Save a tar archive of your entire /root directory somewhere safe. Then, when you upgrade to your new Puppy, unpack it, and pick and choose what you want to re-incorporate.

In so doing, you'll additionnaly have the listing of packages under .packages, which will be a good indication of the pets that you may want to re-install.

Just a thought.

Of course, if you want to download RSH's latest version of LaZyPuppy, he's incorporated his backup script in it! (Speaking of "lazy" [in the strictest sense of the word, of course]... Razz )

Have fun! Very Happy

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2380
Location: Germany

PostPosted: Sat 24 Mar 2012, 04:25    Post subject:  

Update Version 1.4 available!
Moved to here: http://murga-linux.com/puppy/viewtopic.php?p=614348#614348

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 28 Mar 2012, 00:23    Post subject:  

Quote:
simple and "sledgehammer"


In ye olde Puppy days
every 6 weeks. New Puppy. We start from scratch.
Yikes! Shocked

I can mess up an operating system in a very short time, even Puppy (going to dubious sites, downloading experimental software, writing rubbish programs in experimental languages and allowing fish to use my computer)

I like to freshen up with a clean install.
I am not most users. I never install to hard disk always run from DVD.
I keep data and operating system separate. for security and an easy new start.

Could a configuration data file be part of woof2?
Containing language details. Connection and hardware details (hardware, sound and connection details to start perhaps) Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [27 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.0848s ][ Queries: 13 (0.0062s) ][ GZIP on ]