Mark Berry wrote:
Hi
Has anyone any experience of setting up a IDE tape drive? I have a HP
Colorado "Travan" which is recognised as /dev/hdg but there are no
entries in /etc/fstab so I can't mount it.

Any ideas?
lots.

but, why do you want to mount a tape drive.

tape drives are not mounted as are harddisk drives.

i have a conner ctt8000s tr4 scsi tape drive that i use following with;

==+==
making a command line tape backup quick, easy,
and with out need of any special programs.

create a link from _tape_device_ to '/dev/tape'.

cd to top directory of path to back up when doing
write. this way, when you restore, you may restore
files were ever you wish, as '/' is never implied.

**note**
use 'grep -iv "\./proc"' to eliminate '/proc' from path '/' when
making full backups from '/'.

 write, full backup;  [w/ 5120 byte record]

   find . -print | grep -iv "\./proc" | sort | \
     cpio -oaBcv -O /dev/tape

 write, modified;  [1 day old]

   find . -mtime 1 -type f -print | cpio -oaBcv -O /dev/tape


 restore, all;

   cpio -iBcdlmv -I /dev/tape

 restore, file;

   echo "path-filename" | cpio -iBcdlmv -I /dev/tape


 view, names of files stored;  [builds an index file]

   cpio -iBct -I /dev/tape [ > bkup.indx ]

  or, for 'ls -l' type output;

   cpio -iBctv -I /dev/tape [ > bkup.indx ]


 run backup from cron;

   30 01 * * * find . -print | grep -iv "\./proc" | \
     sort | cpio -oaBcv -O /dev/tape
  or;

   30 01 * * * 'script-file'
  [where 'script-file' is any combination of _write_.]


why cpio?
cpio is available on all systems, as is tar.
cpio will span multiple tapes, as will tar.
cpio will skip bad data and tell you, tar may not.

read 'man' for: cpio, cron, find, grep, sort.

to test a script;

   find . -print | grep -iv "\./proc" | sort > test4files
   less test4files
==+==

hth.


peace out.

tc,hago.

g
.
--
 think green...
    save a tree, save a life, save time, save bandwidth, save storage.
     send email...   text/plain - disable pgp/gpg/geek code attachments
=+=
 if you are proud to be an american, then buy "made in america".



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to