WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bug in filetool.sh - specifying backup device does not work  (Read 2563 times)

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
Bug in filetool.sh - specifying backup device does not work
« on: August 22, 2010, 10:36:29 AM »
There is a bug in filetool.sh.   If you specify a backup device, it is not used (see below).  This also affects backups that are initiated by the filetool FLTK GUI app since it calls filetool.sh. 

Code: [Select]
$ sudo filetool.sh backup hda1/backuptest
Backing up files to /mnt/hda1/tce mounted over device /dev/hda1 Done.

This can be corrected by changing the two "$3" references in the filetool.sh to "$2".   

Thanks,
Brian

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in filetool.sh - specifying backup device does not work
« Reply #1 on: August 22, 2010, 10:55:18 AM »
No bug. The third parameter is the device. The second parameter is for prompting and is typically set to "noprompt", e.g. in exittc. Since you were hacking in exittc I am surprised you didn't notice.
10+ Years Contributing to Linux Open Source Projects.

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
Re: Bug in filetool.sh - specifying backup device does not work
« Reply #2 on: August 22, 2010, 11:21:35 AM »
No bug. The third parameter is the device. The second parameter is for prompting and is typically set to "noprompt", e.g. in exittc. Since you were hacking in exittc I am surprised you didn't notice.


I see now, sorry I missed that :) 

Thanks,
Brian