Re: Copying files over the Network

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 08/27/04

  • Next message: Miller, Dave (I.S.): "Script question"
    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.
    

  • Next message: Miller, Dave (I.S.): "Script question"

    Relevant Pages

    • Re: Copying files over the Network
      ... When you come to the next copy, file1 has been updated but file2 no longer exists. ... because it preserves modification times as well as permissions. ... 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. ...
      (AIX-L)
    • Re: simple ln question
      ... that makes it so the contents of file1 are the same as of file2, and if you change the contents of 1, the other ... prints the inode number for the file foobar. ...
      (Fedora)
    • RE: data conundrum
      ... in your spens you'll want to keep field names consistent. ... the specs will be the most tedious, but once theyr're done once they're done. ... in other words, you have file1, file2, file3..... ...
      (microsoft.public.access.externaldata)
    • RE: data conundrum
      ... let's say file1 looks like this: ... and let's say file2 looks like this: ... then you will probably have to create import specs for all 100 ... create from the .csv files) as opposed to using a form, ...
      (microsoft.public.access.externaldata)
    • Re: Need Help
      ... eg: file1, file2, file3 etc ... into, max 5-6, chunk files and then loading these chunk files into ...
      (comp.unix.shell)