Re: Copying files over the Network
From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 08/27/04
- Previous message: Sajjad S Hashimi: "Sajjad S Hashimi is out of the office until 9/15/04"
- Maybe in reply to: Vipin Khushu - SuSe: "Copying files over the Network"
- Next in thread: Vipin Khushu - SuSe: "Re: Copying files over the Network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 12:04:35 +0200 To: aix-l@Princeton.EDU
One important consideration is whether you need to clean-up things on
machine B.
e.g. The first time, you copy file1 and file2 from A to B.
When you come to the next copy, file1 has been updated but file2 no longer
exists. Do you need to remove file2 from machine B?
Could files on Machine B be updated, so that they have a later timestamp
than those on machine A? If so, what do you want to happen?
Generally, I would recommend rdist for this. However, if your needs are
relatively simple - if the directory on machine B gets cleared down before
the copy, for example - I'd use a combination of rsh and tar or
backup/restore.
e.g. tar -cf - /your/directory | rsh machineB tar -xf -
This is good, because it preserves modification times as well as
permissions. You can do the same thing with backup/restore, which is better
for large amounts of data and for database files.
-- Simon Green Altria ITSC Europe Ltd AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html <https://new-lists.princeton.edu/listserv/aix-l.html> New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX <http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX> N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. -----Original Message----- From: Vipin Khushu - SuSe [mailto:vkhushu@GUERNSEYOP.COM] Sent: 26 August 2004 23:14 To: aix-l@Princeton.EDU Subject: Copying files over the Network I need to copy the contents of a directory, including sub-directories, and all files contained in those directories from machine A to machine B over the network, in a recurring fashion, say once every 24 hours. The file types include binaries and text files. I'd like to maintain the permissions of the files as they exist in machine A. Any tips, suggested commands, etc would be greatly appreciated.
- Previous message: Sajjad S Hashimi: "Sajjad S Hashimi is out of the office until 9/15/04"
- Maybe in reply to: Vipin Khushu - SuSe: "Copying files over the Network"
- Next in thread: Vipin Khushu - SuSe: "Re: Copying files over the Network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|