WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: request: backup only to the correctly labeled device  (Read 1665 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
request: backup only to the correctly labeled device
« 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.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: request: backup only to the correctly labeled device
« Reply #1 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!
« Last Edit: November 16, 2012, 07:03:20 AM by netnomad »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: request: backup only to the correctly labeled device
« Reply #2 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.
« Last Edit: November 16, 2012, 09:41:16 AM by hiro »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: request: backup only to the correctly labeled device
« Reply #3 on: November 16, 2012, 11:26:18 AM »
It appears that you might confuse restore vs. backup functions of filetool.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: request: backup only to the correctly labeled device
« Reply #4 on: November 17, 2012, 06:54:25 AM »
sorry, i see now that this was not clear from my first post.