Other Help Topics :: error running fieltool.sh
it looks like your sda1 is being tried as the source rather than the destination, and trying /cdrom as the destination.
Perhaps you need another argument?
(filetool.sh backup source destination)
You`ll have to forgive my ignorance mikshaw but the source is the contense of filetool.lst, how do I use that? How about:
filetool.sh backup "cat filetool" /mnt/sda1
hmm...that sounds unnecessarily redundant, so it's probably incorrect. I think I was wrong anyway.
All I know is that the output is saying "Backing up files to /cdrom"....i was thinking at first that it was trying to write to the wrong device. However, after a little exploring it seems that /cdrom is the mountpoint for the KNOPPIX and boot files, and whatever files are included with them.....so i guess that would be the mountpoint for your usb device?
perhaps the device is mounted read-only, or maybe you need to remount the device on /mnt/sda1 (one device, two mountpoints). That sounds weird, but it may be the only way to make it writeable.
I also noticed /cdrom IS /mnt/sda1, odd but if it ALWAYS reflects the
device DSL is on, it could be backup dev. for writable drives.
I mount and write files to sda1 manually in DSL, so it`s writable as su.
I know very little about writing script, maybe something like:
#!/bin/bash
# Script for Backup of DSL settings
echo -n "${BLUE}Backing up files to: /cdrom ${NORMAL}"
sudo tar -C / -T /mnt/ramdisk/home/dsl/filetool.lst --exclude=Cache -czf /cdrom/backup.tar.gz
echo "${BLUE}Done.${NORMAL}"
exit 0
I took this code from Robert Shingledecker`s code & altered it.
I`m not sure how much of filetool.sh is required to be reliable.
The source & destination are hard coded, so no arguments.
I think the very first line`s needed for script to function, duh?
If ANYONE has any thoughts, suggestions, etc., PLEASE feel free!!!
Lets start by posting which version of DSL you are using and the contents of the filetool.lst, i.e., which files you are trying to backup.
Next Page...
original here.