Automating a tar -M... Looking for ideas

From: cyber0ne (ddonahue_at_ccs.neu.edu)
Date: 12/30/04


Date: 30 Dec 2004 08:25:49 -0800

I've written a number of very small and simple shell scripts to handle
my tape archiving needs and now I'm looking to extend the automation a
step further. As it stands, I invoke a script which contains several
tar -M commands for various filesystems and directs the verbose output
to a log file. To use the space on the tapes thoroughly (important,
not many tapes) I just put the tar commands one after another and let
the -M flag prompt me when it's time for the next tape, I just insert
the next one and press return.

Now, the problem lies in the fact that I have to remain logged into
that machine in order to do this. This isn't critical, as the room has
a certain amount of physical security, but I just hate to leave a
console logged in 24x7.

Does anyone have any ideas for a way of pausing between the tapes in a
script (-M includes an option for running a script instead of
displaying its default message and requesting user input) that doesn't
require me being logged in? Ideally, if I could cron the entire backup
job and just put in the next tape whenever I notice the previous one is
done (I can tail the aforementioned log file for the backup's current
status) that would be perfect.

I'm sure there are other applications which can accomodate me, but I
have certain limitations. The machine in question is quite old and
slow and what little disk space it has is left open so that log files
don't fill the filesystem. Also, my budget for this is approximately
$0. Given all this, writing a simple script to handle this is the
ideal solution.

Regards,
David P. Donahue
ddonahue@ccs.neu.edu



Relevant Pages

  • UPDATE: Vdump script
    ... I want to keep this vdump script as simple and basic as possible. ... to backup and all that). ... The problem I'm having is what happens when the tape fills up. ...
    (Tru64-UNIX-Managers)
  • [OT] mondoarchive via cron - how do you know if it completed correctly?
    ... I've been using mondoarchive for awhile now for interactive backup to CD's. ... We put in a tape drive and I set it up to backup to tape every night by ... writing a very simple script and putting it in /etc/cron.daily (the script ... The problem is that I get a 6k log file each morning ...
    (RedHat)
  • Re: possible nomination for oracle wtf
    ... the incumbent Oracle DBA was ... tape from the previous night's backup and my heart sank as it appeared ... worked backwards through tape after tape, it became apparent that we ... I located the script that was run by cron every night and examined ...
    (comp.databases.oracle.server)
  • SUMMARY: Vdump script
    ... a problem with a vdump script, in that it wouldn't prompt the user for the ... Most responses I received assumed I was running the script as a background job ... my script had been using a symbolic link for the tape drive ... > would sit at a prompt asking for a new tape, and then after mounting the tape, ...
    (Tru64-UNIX-Managers)
  • Re: Exabyte 221L Auto Loader
    ... I have a Promise 15100 raid with 2 logical drives ... requires you to take the drive offline before performing tape move ... script at the end of a session. ... This takes the drive offline, ejecting the tape, uses mtx to place ...
    (freebsd-questions)