Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Backup / Restore, Feature or Flaw< Next Oldest | Next Newest >
newOldUser Offline





Group: Members
Posts: 241
Joined: Oct. 2004
Posted: Sep. 05 2005,13:05 QUOTE

Here's the build up...

I'm using a DSL 1.4.0 frugal install with the grub boot loader. The machine has several partitions, the last one being hda6

The grub menu line looks like this:
kernel /boot/linux24 root=/dev/hda5 vga=normal nopcmcia acpi apm frugal dma toram mydsl=hda6 restore=hda5 home=hda5 opt=hda5 host=DSL140

Life is good.... DSL works fine.  I can modify files and they will be backed up and restored from a backup file created on hda5

The other day I decided to make a manual backup to hda6.  I clicked on the DSLpanel.... Backup/Restore button and entered hda6.  The backup worked just fine.  I went on my way doing other things with DSL.  

The Punchline...

When I shutdown the system  I noticed that the backup that's taken during shutdown didn't go to hda5 like it always does but instead went to hda6.  This could cause some grief the next time I started, since it's going to restore from hda5.

So my question is...

Is this a feature or a flaw?  I would think that at startup and shutdown the restore= parameter should always be used but maybe I'm wrong.


--------------
======== Note =========
The DSL Forum Search default is 'OR'
If you search for "cat dog" you will get all "cat" posts and all "dog" posts.
If you search for "cat AND dog" you will only find results that contain BOTH "cat" and "dog"
Add '*' for wildcards, " cat* and dog* "
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 05 2005,14:41 QUOTE

You changed the target for backup, so when you shut down the regular backup is written to the new target.
You must keep in mind that the scripts Robert has written for DSL are meant to be streamlined, small, and simple.  The gui writes to /opt/.backup_device when you press one of the buttons.  This file is what is used to dertemine the backup device when the filetool script is run (such as during shutdown).
Maybe there could be a "save setting" button instead of writing /opt/.backup_device automatically while restoring or backing up to avoid this situation.  In order to do that, the filetool.sh would probably need to be changed as well.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
SuperLou Offline





Group: Members
Posts: 124
Joined: April 2005
Posted: Sep. 06 2005,17:42 QUOTE

Maybe in a frugal install with persistent home and opt have some way to not include /home or /opt by default too?  Even after removing those I have some intersting interactions between the persitent folders and the backup.  Its' my stupidity for forgetting to remove home and opt from filetool.lst but maybe a warning would be nice for other folk who might have been frustrated by the same.  Although, most people probably figured it out a lot faster than me.
Back to top
Profile PM WEB AOL 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 06 2005,18:49 QUOTE

If you are using a persistent home and opt, there is little reason to use backup/restore, unless you are writing files to /etc or loading extensions that may overwrite your personal files.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
SuperLou Offline





Group: Members
Posts: 124
Joined: April 2005
Posted: Sep. 06 2005,19:22 QUOTE

There are some .dsl that write elsewhere I think so I had to reload them each boot.  Unfortunatly they would overwrite the stuff in home or opt for config stuff so I have been using the backup restore to hold onto those files and put them back after the .dsl is finished abusing things.  I think.  There is probably a better way to do it.
Back to top
Profile PM WEB AOL 
5 replies since Sep. 05 2005,13:05 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Backup / Restore

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code