Sponsored Content
Top Forums UNIX for Dummies Questions & Answers cpio backup to a remote device.. Post 26337 by RTM on Thursday 15th of August 2002 10:15:24 AM
Old 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

backup listing(cpio)

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

backup with CPIO

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

CPIO Backup End of Media

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

extract cpio backup on tape

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

cpio Backup and restore to spare server fails

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

Remote Tape Backup Using cpio

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

Help with Backup Shell Script for Network Device Configuration backup

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

Backup to a remote tape device. Is it possible?

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

Cpio: copy failed - No space left on device when I use rpm

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

Cpio - input files (from list) are stored in different order inside cpio archive - why?

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
tcopy(1)							   User Commands							  tcopy(1)

NAME
tcopy - copy a magnetic tape SYNOPSIS
tcopy source [destination] DESCRIPTION
The tcopy utility copies the magnetic tape mounted on the tape drive specified by the source argument. The only assumption made about the contents of a tape is that there are two tape marks at the end. When only a source drive is specified, tcopy scans the tape, and displays information about the sizes of records and tape files. If a des- tination is specified, tcopy makes a copies the source tape onto the destination tape, with blocking preserved. As it copies, tcopy pro- duces the same output as it does when only scanning a tape. The tcopy utility requires the use of Berkeley-compatible device names. For example, example% tcopy /dev/rmt/1b /dev/rmt/2b ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ SEE ALSO
mt(1), ioctl(2), attributes(5) NOTES
tcopy will only run on systems supporting an associated set of ioctl(2) requests. SunOS 5.10 10 Mar 2000 tcopy(1)
All times are GMT -4. The time now is 10:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy