Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: hiro on November 16, 2012, 05:43:59 AM

Title: request: backup only to the correctly labeled device
Post by: hiro on November 16, 2012, 05:43:59 AM
if we boot with restore=LABEL=blabla

filetool.sh should fail if the label doesn't fit.
Title: Re: request: backup only to the correctly labeled device
Post by: netnomad on November 16, 2012, 06:56:37 AM
hi hiro,

these boot codes work for me:

waitusb=5:LABEL=tc
protect
restore=LABEL=tc
tce=LABEL=tc/tce4

i use the same backups with it's configurations on different machines with different fstabs and devices,
but i'm not sure whether filetool.sh could fail in other certain special circumstances.
...i had no problem yet, although i'm a heavy tester and i take every chance to prove my environment on every single machine that gets in my way ;)

give it a try!
Title: Re: request: backup only to the correctly labeled device
Post by: hiro on November 16, 2012, 09:39:29 AM
perhaps this is moot and I somehow got confused. will try to reproduce again next week. I thought it just checks the /etc/sysconfig/backup_device.

To make the situation more clear: I unmount my sd card, then if I put an other one in backup might get written incorrectly on that wrong sd card with different label.
Title: Re: request: backup only to the correctly labeled device
Post by: tinypoodle on November 16, 2012, 11:26:18 AM
It appears that you might confuse restore vs. backup functions of filetool.
Title: Re: request: backup only to the correctly labeled device
Post by: hiro on November 17, 2012, 06:54:25 AM
sorry, i see now that this was not clear from my first post.