08-15-2002
First - look to insure you can 'go both ways'
On system everest (the one with the tape drive) do a
% rsh systemX uptime
as the user who will be running the script. Then go from systemX (the one to be backed up) to system Everest.
% rsh everest_backup uptime
If you get a response both ways of the output of the uptime command (or one of your favorites) then the next problem is permissions on the tape drive. If you get permission denied, then there is still a problem with trust between the servers. That is usually the problem - check your /etc/hosts.equiv files or appropriate rhost files for the user and servers.
It's possible that a regular user can't backup to the tape drive. Sign in as the user that will be running the job on the client. See if you can manually cpio to the tape drive on everest.
If this all works, then run the script manually. If it works - run in cron.
Post back results for all test.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi i am using HPUX
and i want to know wht is the command to see the listing from the tape device..
i have taken the backup
using cpio -ocvB>/dev/rmt/0m
while seeing the listing using
cpio -itvB</dev/rmt/0m
it is not showing the listing giving message -c option sd be there if i put -c... (1 Reply)
Discussion started by: Prafulla
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have a tape backup(DDS2) with cpio. I want to restore just some directory from this device but I do not know the command ??
other question
what is the best cpio command to take more than 8 GB data ?
thanks
Alice (1 Reply)
Discussion started by: alisevA3
1 Replies
3. SCO
I'm having problems getting backups working on SCO OpenServer 5.7.
using the following command:
find / -depth -print | cpio -ocvB -O /dev/rct0
some files are backed up then the following error is reported:
Reached end of medium on output.
Device /dev/rct0: Change to part 2 and... (6 Replies)
Discussion started by: RMA1
6 Replies
4. UNIX for Advanced & Expert Users
Hi,
I was wondering, If I take a backup using cpio to tape from UNIX, can I extract data on windows box using cpio for windows? Anybody ever do this?
Thanks. (1 Reply)
Discussion started by: yonez
1 Replies
5. SCO
Our company purchased a spare HP ML350 server - identical to current one in use to act as minimal downtime replacement should the inevitable happen.
After install of OS 5.0.7 and restore of cpiobackup I get this message:
-: Syntax error: Hostname= $inexpected
The SCO licence policy... (4 Replies)
Discussion started by: moondogi
4 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I've got two HP machines running HP-UX 11.31 and would like to remotely backup one server onto another server's tape unit using the cpio command.
The two servers use a secured communication channel, i.e ssh.
Kindly help,
Koketso (1 Reply)
Discussion started by: Koketso
1 Replies
7. Shell Programming and Scripting
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
8. AIX
Hi all
The situation is as follows:
We need to take an mksysb image from an AIX 6.1 server. From some reason (irrelevant to this discussion) this server does not have access to a local CD-ROM or a tape drive. We do have another server with AIX 6.1 (but different technology level) which got access... (1 Reply)
Discussion started by: abohmeed
1 Replies
9. AIX
Hello,
I want to install GCC gcc-4.8.1-2.src.rpm for AIX 6.1
when I lance my command rpm -i gcc-4.8.1-2.src.rpm
I have this error
unpacking of archive failed on file gcc-4.8.1.tar.bz2: cpio: copy failed - No space left on device
I checked the free space and I am surpise becouse I have... (7 Replies)
Discussion started by: tatab355
7 Replies
10. UNIX for Advanced & Expert Users
Due to budget constraints I have to reinvent an Enterprise backup system in a SPARC (sun4v) Solaris estate (10 & 11). (yep - reinvent wheel, fun but time consuming. Is this wise?! :confused: )
For each filesystem of interest, to try to capture a 'catalog' at the front of each cpio archive (for... (1 Reply)
Discussion started by: am115998
1 Replies
MT(1) GNU CPIO MT(1)
NAME
mt - control magnetic tape drive operation
SYNOPSIS
mt [-V] [-f device] [--file=device] [--rsh-command=command] [--version] operation [count]
DESCRIPTION
This manual page documents the GNU version of mt. mt performs the given operation, which must be one of the tape operations listed below,
on a tape drive.
The default tape device to operate on is taken from the file /usr/include/sys/mtio.h when mt is compiled. It can be overridden by giving a
device file name in the environment variable TAPE or by a command line option (see below), which also overrides the environment variable.
The device must be either a character special file or a remote tape drive. To use a tape drive on another machine as the archive, use a
filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user,
if you have permission to do so (typically an entry in that user's `~/.rhosts' file).
The available operations are listed below. Unique abbreviations are accepted. Not all operations are available on all systems, or work on
all types of tape drives. Some operations optionally take a repeat count, which can be given after the operation name and defaults to 1.
eof, weof
Write count EOF marks at current position.
fsf Forward space count files. The tape is positioned on the first block of the next file.
bsf Backward space count files. The tape is positioned on the first block of the next file.
fsr Forward space count records.
bsr Backward space count records.
bsfm Backward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark.
fsfm Forward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark.
asf Absolute space to file number count. Equivalent to rewind followed by fsf count.
seek Seek to block number count.
eom Space to the end of the recorded media on the tape (for appending files onto tapes).
rewind Rewind the tape.
offline, rewoffl
Rewind the tape and, if applicable, unload the tape.
status Print status information about the tape unit.
retension
Rewind the tape, then wind it to the end of the reel, then rewind it again.
erase Perform long erase of tape. If count is 0, perform short erase of tape (some devices do not support this).
mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name given was invalid, or 2 if the operation failed.
OPTIONS
-f, --file=device
Use device as the file name of the tape drive to operate on. To use a tape drive on another machine, use a filename that starts
with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have
permission to do so (typically an entry in that user's `~/.rhosts' file).
--rsh-command=command
Notifies mt that it should use command to communicate with remote devices instead of /usr/bin/ssh or /usr/bin/rsh.
-V, --version
Print the version number of mt.
BUG REPORTS
Report bugs to <bug-cpio@gnu.org>.
COPYRIGHT
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
MT
January 28, 2014 MT(1)