WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
request: backup only to the correctly labeled device
« on: November 16, 2012, 08: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, 09: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, 10:03:20 AM by netnomad »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: request: backup only to the correctly labeled device
« Reply #2 on: November 16, 2012, 12:39:29 PM »
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, 12:41:16 PM by hiro »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: request: backup only to the correctly labeled device
« Reply #3 on: November 16, 2012, 02:26:18 PM »
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: 1229
Re: request: backup only to the correctly labeled device
« Reply #4 on: November 17, 2012, 09:54:25 AM »
sorry, i see now that this was not clear from my first post.