Re: remote copying

2003-01-22 Thread Robert Anderson

I would use "rsync".

--
 Robert E. Anderson email: [EMAIL PROTECTED]
 Systems Programmer phone: (603) 862-3489
 UNH Research Computing Centerfax: (603) 862-1761
--
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss



Re: remote copying

2003-01-22 Thread pll

In a message dated: Wed, 22 Jan 2003 14:53:46 EST
Robert Anderson said:

>I would use "rsync".

Not rEmacs?  It has everything, including the kitchen sync ;)
-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

 If you're not having fun, you're not doing it right!


___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss



Re: remote copying

2003-01-22 Thread Robert Anderson

Well you could run "rsync" from an emacs "shell".  

But then again I'm sure we'll be getting a PERL solution soon.  The
"other" swiss army knife of Unix.  (Although emacs could make the PERL
look pretty too).  ;)

--
 Robert E. Anderson email: [EMAIL PROTECTED]
 Systems Programmer phone: (603) 862-3489
 UNH Research Computing Centerfax: (603) 862-1761
--
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss



Re: remote copying

2003-01-22 Thread Randy Edwards
Robert Casey wrote:

I would like to do this copy and keep permissions if possible.


   rsync, tar, or "cp -ax" would seem logical.  Does this have to be done at 
each boot or is it a one-time deal?

--
 Regards, | <[EMAIL PROTECTED]>   | GNU/Linux: superior tools
 .|  |  for those who know how
 Randy|   |   to use them.

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss


RE: remote copying

2003-01-22 Thread Peter Finlay
This was on a tech site but I have never used it:

Robin Hurd 
  16 Dec 2002, Rating 3.83 (out of 5)
  This tip will allow you to copy directory trees without worrying about ownerships, 
permissions,
  etc. (Note: This command is good for Unixes without a recursive copy command) The 
FIND
  command will list the files which are then piped into the CPIO command to copy them. 
Check the
  manual pages of CPIO for an explanation of the options. 

  Code

  # cd 
  # find . | cpio -pVmud

I used this piped tar command to do all mine but you have to su to the user to keep 
permissions.
You may be able to keep permissions with the right tar flags.

Make sure the user is off ever machine before the auto mount switch.
I do a "du -sk ." before and after as a close check ( the size given to the dir 
pointer throws it off a little )  the tar dies in broken pipe if there is a syntax 
error and the log is a way to see how far it goes ( and a record for you when 
somethings missing )
The date is not in the log but gives you an idea of how long it takes with your 
network.
The new dir is owned by the user and I su'd to him in his old dir.
Any machine where he has anything left running will keep using the old auto mount till 
killed and you umount his old home.  I had the users do "df -k ." on all machines 
first ( .bashrc )

date ; tar cf - . | ( cd /vol0/home4/newuserdir ; tar xvf - ) >& /tmp/logfile.txt ; 
date

I have a document I can clean up if you like, just email me off line.

Peter Finlay

Cadence Design Systems
Lowell, MA 01851
[EMAIL PROTECTED]
W 978.441.4366

-Original Message-
From: Robert Casey [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 22, 2003 2:44 PM
To: [EMAIL PROTECTED]
Subject: remote copying


Good afternoon all,

can someone tell me the best method to copy files from a auto mounting 
home directory, which comes from a Solaris box, to a linux box. I'm 
setting up a server on Dell Poweredge 4600 running Linux 7.3 which, 
when finished, will be where most if not all of our exports will come 
from. Right now we have cross mounting issues because virtually all of 
our Suns export a directory - some auto mounting and some through 
vfstab entries. I would like to do this copy and keep permissions if 
possible. I will start with my own home directory which comes from a 
host named g32s2s and copy it to our Dell Linux server and then change 
the auto mounting database to reflect those changes.

Bob


Robert Casey
MIT Lincoln Laboratory
244 Wood Street
Lexington, MA 02420-9108
781-981-3034

___
gnhlug-discuss mailing list
[EMAIL PROTECTED] http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss



Re: remote copying

2003-01-23 Thread pll

In a message dated: Wed, 22 Jan 2003 17:14:39 EST
"Peter Finlay" said:

>This was on a tech site but I have never used it:

Everything contained in your post is technically valid, and perfectly 
usable.  However, as previously mentioned, rsync is a lot better, 
especially if you need to copy the directory structure to another 
system across a network.

tar, cp, cpio, etc., all depend upon the directory structure being 
local to the system where the command is run.  Of course, in old 
days, we would just use an rsh command on one side to lob the tar 
command across to the remote host and catch the output locally.

However, with rsync and ssh, none of thie is necessary, and it's 
trivial to do, even while preserving permissions and time stamps.
-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

 If you're not having fun, you're not doing it right!


___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss



Re: remote copying

2003-01-23 Thread Andrew W. Gaunt
We have done this many times as servers get
replaced . I use the excellent tool rsync. We've
actually got such a migration in progress now.
I'm moving a server with somewhere arounf
700GB from  a SUN/EMC combo to a linux nfs
server. Using rsync(s) I can copy all data in about
30hours and keep the new box up to date in much
less time.

-Andrew Gaunt

Robert Casey wrote:


Good afternoon all,

can someone tell me the best method to copy files from a auto 
mounting home directory, which comes from a Solaris box, to a linux 
box. I'm setting up a server on Dell Poweredge 4600 running Linux 7.3 
which, when finished, will be where most if not all of our exports 
will come from. Right now we have cross mounting issues because 
virtually all of our Suns export a directory - some auto mounting and 
some through vfstab entries. I would like to do this copy and keep 
permissions if possible. I will start with my own home directory which 
comes from a host named g32s2s and copy it to our Dell Linux server 
and then change the auto mounting database to reflect those changes.

Bob


Robert Casey
MIT Lincoln Laboratory
244 Wood Street
Lexington, MA 02420-9108
781-981-3034

___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss



___
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss