cron file copy to tape
Posted on 2003-10-22
let me start off by saying i'm fairly new to scripting so please excuse any dumb questions i might ask. i would like to create a script that copies all the files in a date-named directory. this script will be called on a daily basis by cron. so, for example, i have a directory named 031022 with 152 files in it. i'd like to append this directory, complete with files, to a tape with preceeding day's files/directories on it. the little scripting i have done has not made reference to devices. my first question is how do you reverence the tape drive? can you treate it just like any directory on the hard drive? could i for example do the following:
cp /home/mydirectory/* the_tape_drive/031022
i have the distinct feeling that it could not be this easy.
i'll probably have more questions later.