Need to transfer files over from an olds Sunos 5.6 box


 
Thread Tools Search this Thread
Operating Systems Solaris Need to transfer files over from an olds Sunos 5.6 box
# 1  
Old 01-25-2010
Need to transfer files over from an olds Sunos 5.6 box

Hi,

I have an ancient SunOS 5.6 and I have to backup all the data onto it. I have tried connecting a tape drive but it does not boot up (something to do with its SCSI configuration I guess) when I do.

So I am left with the possibility of copying files remotely from the SunOs box to another machne via RCP. Problem: RCP handles SYMLINKS terribly and it copies all this extraneous data to my receiving hard drive and fills it up to capacity before all other essential data from source has been received.

Right now I am working on a solution using RSH and CPIO....
Can anyone suggest me a way of using these commands given my requirements? My attempts have failed heretofore.
# 2  
Old 01-25-2010
tar should be able to handle links, symlinks, permissions, and perhaps users relatively intelligently. Its behavior for device files varies from implementation to implementation.

I'd avoid rsh/rcp if at all possible. Does the box have a working ssh client? I sometimes do things like:
Code:
tar -cf - /path | ssh user@host 'cat > archive.tar'

which will create the file archive.tar on the remote host if its version of tar supports the '-' parameter to mean stdin/stdout. You could also have it extract the tar directly with 'tar -C /path/to/destination -xf -'.
# 3  
Old 01-25-2010
WEll I do not have ssh but rsh and I get the following...I have to backup all my / partition:
Code:
tar -cf / | rsh 10.20.202.131 'cat > /beauvert/archive.tar'
tar: Missing filenames

What do I need to do?

Last edited by Yogesh Sawant; 01-27-2010 at 03:32 PM.. Reason: added code tags
# 4  
Old 01-26-2010
You copied my example imperfectly. The dash tells it to write to stdout, without it, you're telling it to create a tar file file named / !

tar -cf - / | rsh ...

I don't know if my ssh trick works with rsh or not. but worth a shot...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find file older than one month not by x days olds

Hi, I would like to ask about some question on the -mtime option in the find command. I want to move a log files older than one month and planning to used the find -mtime +30 but i have some clarrification does -mtime +30 or -30 refer to x days beyond or between so how about the month. suppose... (2 Replies)
Discussion started by: jao_madn
2 Replies

2. Shell Programming and Scripting

SCP During Transfer to SunOS

Hi, I'd like to seek your help in finding the cause of this problem. I utilize SCP command to transfer files from one server to another. I utilize the return code that SCP return so as to verify if transfer is ok or not. Below is a sample code that I created. if scp... (9 Replies)
Discussion started by: padi
9 Replies

3. UNIX for Advanced & Expert Users

FTP transfer from Linux to unix box

Hi, I transferred a tar.gz file from a linux server to a unix server using ftp. In the unix box when i untarred, only few files with zero bytes were copied and i get "tar dir : cksum error" Could anyone help me out ? Thanks & Regards, Abinaya (3 Replies)
Discussion started by: abinaya
3 Replies

4. UNIX for Dummies Questions & Answers

file transfer from https to a Unix box

Hi, I want to transfer a file from a https side to an unix machine, somebody can let me know a easy way to do so, A simple script to be put in the unix machine to retrieve the file from the https side Thanks (4 Replies)
Discussion started by: jvjaimes
4 Replies

5. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

6. Shell Programming and Scripting

Moving files from Unix box to a windows box

Hi All, I need a little help .I want to transfer a file from unix box to a windows box,but the problem i'm facing is that in windows box FTP is not enabled and currently it is nearly impssible to change setting on windows box,i can not use the ftp method ,in my shell script to transfer the file.... (2 Replies)
Discussion started by: Preet
2 Replies

7. UNIX for Advanced & Expert Users

Access files from prev box after SSH to another box

i'm not much of an advanced unix programmer but I'm trying to write a script to access files on box1 after ssh from box 1 to box2. when ssh is invoked in the script i'm getting logged into box2 and losing complete touch with box1 which is normal i guess. but my main aim with my script is when i... (3 Replies)
Discussion started by: pharos467
3 Replies

8. UNIX for Advanced & Expert Users

mail problems SUNOS BOX

now, i need to send a file to an email address but i cant seem to find a place on the internet that tells me that specifically. sites i came across just happens to be beating aroung the bush too much. i'm running a SUNOS box 5.6. can someone please give me the proper syntax. either for mailx... (2 Replies)
Discussion started by: Terrible
2 Replies

9. UNIX for Dummies Questions & Answers

Transfer Files from old Mac to a Linux box?

The other half has informed me that I gotta get my own Internet box (been using her's for over ten years) and my ancient Mac SE30 (when's the last time you heard about one of those) has a bunch of Excel and Word files that I want to move to the next machine. I know that I can spend significant... (3 Replies)
Discussion started by: wsimpso1
3 Replies

10. IP Networking

File transfer from unix to NT box?

Is there a method to transfer a file from UNIX (AIX) to an NT box without the NT box having any special software running? I can ping the box via the network and I have a valid NT account to use. Is FTP a viable solution ? HELP! (10 Replies)
Discussion started by: jvacc
10 Replies
Login or Register to Ask a Question