![]() ![]() |
Apr 2 2006, 08:12 AM
Post
#1
|
|
|
Group: Members Posts: 151 Joined: 15-March 04 From: UK Member No.: 157 |
Count me as a newbie when answering this query. I would like to know how I preserve my settings, documents, and if possible my installed applications when installing a new ROM.
I would like to use my Z more, but what holds me back is the fact that unless I have my documents on a card, I lose everything when I update the ROM. I would like to be able to preserve my whole environment as far as possible. I can't afford business critical documents to be inaccessible while I get my Z back to where it was before I reflashed. Thanks for any help! John |
|
|
|
Apr 2 2006, 09:07 AM
Post
#2
|
|
|
Group: Members Posts: 639 Joined: 4-September 03 From: Chicago Member No.: 401 |
I simply tar my home directory to a CF card
CODE # tar czvf /mnt/cf/home.date.tar.gz . I also keep all key apps I use, kopi, kismet & others in a directory on my CF and after reflashing (and before untarring my home directory) I install them all with one command CODE # ipkg install /mnt/cf/install-feed/* Since I've been flashing back forth with OZ/GPE I've also taken all of the settings that I've tweaked outside of my home dir; kismet.conf, wifi-radar.conf, etc and put them into an ipk. I can get my Z back in about 30 minutes after re-flashing. cheers, Jerry |
|
|
|
Apr 2 2006, 06:54 PM
Post
#3
|
|
|
Group: Members Posts: 104 Joined: 2-August 05 Member No.: 7,764 |
QUOTE(jerrybme @ Apr 2 2006, 09:07 AM) Since I've been flashing back forth with OZ/GPE I've also taken all of the settings that I've tweaked outside of my home dir; kismet.conf, wifi-radar.conf, etc and put them into an ipk. I can get my Z back in about 30 minutes after re-flashing. cheers, Jerry Is it too complicated to briefly explain how to construct that ipk? I know this is opening me up to the standard rtfm response, but I would guess that there is more than one newbie who would benefit from a quick ipk lesson ala tweaked .conf files. |
|
|
|
Apr 2 2006, 10:35 PM
Post
#4
|
|
![]() Group: Members Posts: 1,099 Joined: 17-December 03 From: Athens, Greece Member No.: 1,210 |
|
|
|
|
Apr 2 2006, 10:43 PM
Post
#5
|
|
|
Group: Members Posts: 742 Joined: 15-October 05 From: Gulag, Siberia Member No.: 8,322 |
QUOTE(apink @ Apr 3 2006, 02:54 AM) Is it too complicated to briefly explain how to construct that ipk? I know this is opening me up to the standard rtfm response, but I would guess that there is more than one newbie who would benefit from a quick ipk lesson ala tweaked .conf files. Make an arbitary directory somewhere, say /mnt/cf/my-config-ipkg. Now within this directory populate with the files that you wish to "backup", remember to keep the original directory structure, eg: CODE /mnt/cf/my-config-ipkg/etc/passwd /mnt/cf/my-config-ipkg/etc/groups /mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.kde /mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.matchbox /mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc /mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.openbox /mnt/cf/my-config-ipkg/home/root/.mc /mnt/cf/my-config-ipkg/home/root/.mc/ini /mnt/cf/my-config-ipkg/home/root/.mc/Tree /mnt/cf/my-config-ipkg/home/root/.mc/cedit /mnt/cf/my-config-ipkg/home/root/.mc/cedit/cooledit.macros /mnt/cf/my-config-ipkg/home/root/.mc/filepos /mnt/cf/my-config-ipkg/home/root/.mc/hotlist.bak /mnt/cf/my-config-ipkg/home/root/.mc/history /mnt/cf/my-config-ipkg/home/root/.mc/hotlist Then create a file /mnt/cf/my-config-ipkg/CONTROL/control containing something along the lines of: CODE Package: my-config-backup Maintainer: mickey-mouse @ disney.com Architecture: armv5tel Version: 2006-04-01 License: any Description: a backup of my config files Source: my zaurus Then run: mkipg /mnt/cf/my-config-ipkg/ But before you do all this you really ought to read this for the full details. However IMO it is better to use a standard tarball to keep your config files. The cool thing is that mc knows about tar files (tar.gz at least, not .bz2 though) and you easily pick which files to you want "restored". This is better than the all-or-nothing approach that an ipk offers. See screenshot.
screencap2.png ( 18.77K )
Number of downloads: 115-- cheers |
|
|
|
Apr 3 2006, 04:37 PM
Post
#6
|
|
|
Group: Members Posts: 151 Joined: 15-March 04 From: UK Member No.: 157 |
Thanks for these tips. I suppose I am wondering if there is anyway I can install my apps onto an SD card and then have the reflashed rom able to find the SD installed apps. Also my home directory too. I guess it could be a symlink thing, but I am a bit hazy about where to start.
|
|
|
|
Apr 4 2006, 07:45 AM
Post
#7
|
|
|
Group: Members Posts: 257 Joined: 1-June 04 From: Budapest, Hungary Member No.: 3,518 |
Hi!
I have an always-in SD card, I'm storing everything personal/custom on it in the following way: I have a directory in /mnt/card called "myhome". I have a small script in /usr/bin with the following content: startup.sh: CODE mount -o bind /mnt/card/myhome /home/root This binds it to /home/root so everything is working fine (not so when you just symlink it) So I login, type in "startup.sh", logout, login (so my custom .bashrc can be used) and everything's fine. I also link out my custom config files from this dir, so they don't need to be gathered for a reflash, just link them out again when my new system is up. I still have to reinstall all IPKs, which is a bit time consuming, but it usually helps me to keep my system clean (not installing useless packages again Zumi Ps.: For those who are wondering where have I gone from the forum/development: I got quite a hard semester at the university, and have to do more things anyway than I usually do, so -- sadly -- I don't have time now. So no new fvwm-pdaxrom releases or gpsdrive ipks in the near future. |
|
|
|
Apr 4 2006, 02:24 PM
Post
#8
|
|
|
Group: Members Posts: 343 Joined: 3-October 05 From: NZ Member No.: 8,243 |
QUOTE(macwiz @ Apr 4 2006, 01:37 PM) Thanks for these tips. I suppose I am wondering if there is anyway I can install my apps onto an SD card and then have the reflashed rom able to find the SD installed apps. Also my home directory too. I guess it could be a symlink thing, but I am a bit hazy about where to start. For most apps, I believe this should work just as you describe - just run 'ipkg-link mount /mnt/card' to re-link all the installed apps (assuming they are compatible with the newly flashed OS). |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 03:27 AM |