<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: remote file copy from multiple directories in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964974#M95166</link>
    <description>&amp;gt;Please kindly guide me with sample text that I can customise?&lt;BR /&gt;&lt;BR /&gt;We need to know how you are going to access the files.  If NFS, it is easy.  If pushing by ftp, still easy.  If pulling over ftp, and you can't remove the files you copied, you are hosed and must turn to advanced AI technology.  You must copy all files and then remove the dups.  Or you must parse the name/size/timestamp and see if you already have done it.  And if not, you must ftp-get the file.&lt;BR /&gt;&lt;BR /&gt;As JarleB says, if you have to use ftp, you should look at rsync instead.&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Mar 2007 04:39:44 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-03-20T04:39:44Z</dc:date>
    <item>
      <title>remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964968#M95160</link>
      <description>Distinguished Gentlemen,&lt;BR /&gt;&lt;BR /&gt;I am experiencing a mental block on this one and I need your help.&lt;BR /&gt;&lt;BR /&gt;I want to schedule a job on cron that will copy files from multiple directories daily from a remote system. With each day I want to copy only new files from the remote directories. The remote host where the files are follows the following parttern&lt;BR /&gt;&lt;BR /&gt;/BTC/Dir1/tertiary/*&lt;BR /&gt;/BTC/Dir2/tretiary/*&lt;BR /&gt;/BTC/Dir3/tertiary/*&lt;BR /&gt;&lt;BR /&gt;and so on.&lt;BR /&gt;&lt;BR /&gt;Where do I start such that I can create a loop to copy daily from the remote system to local using cron?&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Tue, 20 Mar 2007 04:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964968#M95160</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T04:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964969#M95161</link>
      <description>I'd use rsync for this operation, either through ssh (exchanging ssh-keys for passowrdless access) or setting up rsync server on the directories to be copied from. &lt;BR /&gt;&lt;BR /&gt;- JarleB</description>
      <pubDate>Tue, 20 Mar 2007 04:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964969#M95161</guid>
      <dc:creator>Jarle Bjorgeengen</dc:creator>
      <dc:date>2007-03-20T04:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964970#M95162</link>
      <description>Hi,&lt;BR /&gt;I would start by looking at this earlier thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1109365" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1109365&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you insists on ftp:&lt;BR /&gt;You would ftp to the machine and then use the cd command to change directories.&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.&lt;BR /&gt;&lt;BR /&gt;So far you have rewarded 7 of 113 answers !&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 04:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964970#M95162</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-20T04:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964971#M95163</link>
      <description>Are these remote directories mounted with NFS so you can look at the timestamps and use find -newer?</description>
      <pubDate>Tue, 20 Mar 2007 04:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964971#M95163</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-20T04:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964972#M95164</link>
      <description>I have never done this before except easy "For" loops on the command line.&lt;BR /&gt;&lt;BR /&gt;Please kindly guide me with sample text that I can customise?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 04:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964972#M95164</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T04:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964973#M95165</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;The 2 systems are standalones on the same network. I could NFS mount the remote filesystem onto the local host. Then I will need to copy the files to the local machine so that I can manipulate them with changing the source.&lt;BR /&gt;&lt;BR /&gt;I know how to NFS mount, how do I then move forward so that I can have a cron that copies the files to a local directory?</description>
      <pubDate>Tue, 20 Mar 2007 04:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964973#M95165</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T04:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964974#M95166</link>
      <description>&amp;gt;Please kindly guide me with sample text that I can customise?&lt;BR /&gt;&lt;BR /&gt;We need to know how you are going to access the files.  If NFS, it is easy.  If pushing by ftp, still easy.  If pulling over ftp, and you can't remove the files you copied, you are hosed and must turn to advanced AI technology.  You must copy all files and then remove the dups.  Or you must parse the name/size/timestamp and see if you already have done it.  And if not, you must ftp-get the file.&lt;BR /&gt;&lt;BR /&gt;As JarleB says, if you have to use ftp, you should look at rsync instead.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 04:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964974#M95166</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-20T04:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964975#M95167</link>
      <description>I would prefer to use NFS in this case because this will be a daily task that I would like to schedule on cron in the local host.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 04:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964975#M95167</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T04:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964976#M95168</link>
      <description>&amp;gt;I would prefer to use NFS.&lt;BR /&gt;&lt;BR /&gt;This is good.  You should look at my solution in Peter's link above.  Then replace the "ftp" plugin by a cp.</description>
      <pubDate>Tue, 20 Mar 2007 05:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964976#M95168</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-20T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964977#M95169</link>
      <description>I have seen the syntax for FTP, I can't seem to figure-out how I will send the copy thru "cp" into a loop so that I can copy from the various directories:&lt;BR /&gt;&lt;BR /&gt;/BTC/Dir1/tertiary/*&lt;BR /&gt;/BTC/Dir2/tretiary/*&lt;BR /&gt;/BTC/Dir3/tertiary/*&lt;BR /&gt;/Btc/Dir4/tertiary/*&lt;BR /&gt;&lt;BR /&gt;Please kindly assist with sample syntax?</description>
      <pubDate>Tue, 20 Mar 2007 05:35:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964977#M95169</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T05:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964978#M95170</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;will there be different local directories&lt;BR /&gt;Dir1/&lt;BR /&gt;Dir2/&lt;BR /&gt;...&lt;BR /&gt;as well or differs the local from the remote structure?&lt;BR /&gt;&lt;BR /&gt;If it is equivalent, adapt+try the following code fragment. It will coy file not already local - you can change this condition to your needs:&lt;BR /&gt;&lt;BR /&gt;nfsdir=/nfsmount/remhost/BTC&lt;BR /&gt;locdir=/archive/btc&lt;BR /&gt;inter=tertiary&lt;BR /&gt;   &lt;BR /&gt;for dir in Dir1 Dir2 ...&lt;BR /&gt;do&lt;BR /&gt;   [ -d $locdir/$dir/$inter ] || mkdir $locdir/$dir/$inter&lt;BR /&gt;   for f in $nfsdir/$dir/$inter/*&lt;BR /&gt;   do&lt;BR /&gt;     [ -f $locdir/$dir/$inter/${f##*/} ] &amp;amp;&amp;amp; continue&lt;BR /&gt;     cp -p $f $locdir/$dir/$inter&lt;BR /&gt;   done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964978#M95170</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-03-20T06:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964979#M95171</link>
      <description>The final bits now, when the copy happens it should only copy files from last.&lt;BR /&gt;&lt;BR /&gt;Where do i stick somethin like this:&lt;BR /&gt;&lt;BR /&gt;for i in `find . -mtime 1 -print |xargs ls -l | awk '{print $9}''&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 20 Mar 2007 07:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964979#M95171</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T07:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964980#M95172</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Correct the logic here?&lt;BR /&gt;&lt;BR /&gt;We are going to mount the remote filesystem onto the local host thru NFS. &lt;BR /&gt;&lt;BR /&gt;We do a copy from the NFS filesystem sub-directories to a seperate but 1 directory on the local host.&lt;BR /&gt;&lt;BR /&gt;The copy should only copy files from last nite. Example if today is the 20th the copy should get files for the 19th.&lt;BR /&gt;&lt;BR /&gt;How do we place the above into a script?</description>
      <pubDate>Tue, 20 Mar 2007 07:13:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964980#M95172</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T07:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964981#M95173</link>
      <description>Gentlemen,&lt;BR /&gt;&lt;BR /&gt;The "for" loop below is what I tried to use but it is limited to &lt;BR /&gt;&lt;BR /&gt;/BTC/DataMediation/L1/tertiary/&lt;BR /&gt;/BTC/DataMediation/L2/tertiary/&lt;BR /&gt;/BTC/DataMediation/L3/tertiary/&lt;BR /&gt;/BTC/DataMediation/L4/tertiary/&lt;BR /&gt;&lt;BR /&gt;It copies from the various L1,L2,L3 directories files that are a day old. To another filesystem /backup/Transfer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I wanted to expand the logic above into a loop such that I can copy from other subdirectories in the same manner. Eg&lt;BR /&gt;&lt;BR /&gt;/BTC/DataMediation/G1/tertiary/&lt;BR /&gt;/BTC/DataMediation/G2/tertiary/&lt;BR /&gt;/BTC/DataMediation/G3/tertiary/&lt;BR /&gt;&lt;BR /&gt;To do this I need a to create a loop, that where I got stuck?&lt;BR /&gt;&lt;BR /&gt;Please Help&lt;BR /&gt;&lt;BR /&gt;SAMPLE SYNTAX:&lt;BR /&gt;&lt;BR /&gt;For i in&lt;BR /&gt;&lt;BR /&gt;'find /BTC_DataMediation/L*/tertiary/ -mtime 1 -print|xargs ls -l|awk '{print $9}''&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;cp -p $i /backup/Transfer/&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 08:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964981#M95173</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-20T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964982#M95174</link>
      <description>&lt;!--!*#--&gt;Hi Olebile,&lt;BR /&gt;&lt;BR /&gt;there where many threads in this forum dealing with timebased selection of files - nevertheless:&lt;BR /&gt;I suggest to take the newest local file as a reference for the decision to copy-or-not - though can can modify this to a solition using a file created by 'touch &lt;TIMESPEC&gt;'.&lt;BR /&gt;&lt;BR /&gt;If you copy all remote files, found in different directories, to a single directory, there is the possiblity, that the plain filenames are not unique and one file is overwriting the other. Your scenario may not have this inpact, however.&lt;BR /&gt;&lt;BR /&gt;nfsdir=/nfsmount/remhost/BTC&lt;BR /&gt;locdir=/archive/btc&lt;BR /&gt;inter=tertiary&lt;BR /&gt;&lt;BR /&gt;touch nowfile&lt;BR /&gt;newest_got=$(ls -t $locdir | sed 1q)&lt;BR /&gt;&lt;BR /&gt;for dir in Dir1 Dir2 ...&lt;BR /&gt;do&lt;BR /&gt;   for f in $nfsdir/$dir/$inter/*&lt;BR /&gt;   do&lt;BR /&gt;     if [ -n "$newest_got" ]&lt;BR /&gt;     then&lt;BR /&gt;       [ $f -ot $locdir/$newest_got ] &amp;amp;&amp;amp; continue&lt;BR /&gt;     fi&lt;BR /&gt;     [ $f -nt nowfile ] &amp;amp;&amp;amp; continue&lt;BR /&gt;     cp -p $f $locdir&lt;BR /&gt;   done&lt;BR /&gt;done&lt;BR /&gt;rm nowfile&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;PS: Your profile states:&lt;BR /&gt;"I have assigned points to 7 of 117 responses to  my questions."&lt;BR /&gt;&lt;BR /&gt;You really should change that.&lt;/TIMESPEC&gt;</description>
      <pubDate>Tue, 20 Mar 2007 09:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964982#M95174</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-03-20T09:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964983#M95175</link>
      <description>&lt;!-- !*# --&gt;&lt;P&gt;&amp;gt;for i in `find . -mtime 1 -print |xargs ls -l | awk '{print $9}''&lt;BR /&gt;&lt;BR /&gt;Did you see my solution regarding a reference file?&lt;BR /&gt;&lt;BR /&gt;If you want to use find, no need to do for, xargs or ls. You should do:&lt;BR /&gt;find /BTC_DataMediation/L*/tertiary/ -mtime 1 -print | while read file; do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp -p $file /backup/Transfer/&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;If you know you aren't finding "lots" of files, then you can use:&lt;BR /&gt;for file in $(find ... ); do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp -p $file /backup/Transfer/&lt;BR /&gt;done&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2011 03:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964983#M95175</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-10T03:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964984#M95176</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;I see the logic in your script, I'll test it and give the results. The files will not overwrite because they are all unique.&lt;BR /&gt;&lt;BR /&gt;Meanwhile the other suggested solution are much appreciated but they do not give me a copying solution based on time.&lt;BR /&gt;&lt;BR /&gt;The reason why it's time based is that I don't want to copy everything from the remote directory that was already copied.&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Wed, 21 Mar 2007 01:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964984#M95176</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-21T01:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964985#M95177</link>
      <description>&amp;gt;The reason why it's time based is that I don't want to copy everything&lt;BR /&gt;&lt;BR /&gt;My script in the following link can be changed to be based on time:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1109365" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1109365&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You just need to use what Peter has here:&lt;BR /&gt; [ $f -nt nowfile ] &lt;BR /&gt;to sort the result of find of the timestamps on the original machine.</description>
      <pubDate>Wed, 21 Mar 2007 01:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964985#M95177</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-21T01:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964986#M95178</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Your script does work I think just one tweek will make it work 100%.&lt;BR /&gt;&lt;BR /&gt;Please look at the files below at the source:&lt;BR /&gt;&lt;BR /&gt;-rw-rw-r--   1 root       other        54192 Mar 21 01:17 L1.TTFILE00.1727.gz&lt;BR /&gt;-rw-rw-r--   1 root       other        51900 Mar 21 01:28 L1.TTFILE02.1725.gz&lt;BR /&gt;-rw-rw-r--   1 root       other        20139 Mar 21 03:13 L1.TTFILE00.1728.gz&lt;BR /&gt;-rw-rw-r--   1 root       other        17793 Mar 21 03:24 L1.TTFILE02.1726.gz&lt;BR /&gt;-rw-rw-r--   1 root       other        75776 Mar 21 05:11 L1.TTFILE00.1729&lt;BR /&gt;-rw-rw-r--   1 root       other        69632 Mar 21 05:23 L1.TTFILE02.1727&lt;BR /&gt;-rw-rw-r--   1 root       other        53248 Mar 21 07:11 L1.TTFILE00.1730&lt;BR /&gt;-rw-rw-r--   1 root       other        51200 Mar 21 07:23 L1.TTFILE02.1728&lt;BR /&gt;-rw-rw-r--   1 root       other       180224 Mar 21 09:12 L1.TTFILE00.1731&lt;BR /&gt;-rw-rw-r--   1 root       other       196608 Mar 21 09:23 L1.TTFILE02.1729&lt;BR /&gt;-rw-rw-r--   1 root       other       299008 Mar 21  2007 L1.TTFILE00.1732&lt;BR /&gt;-rw-rw-r--   1 root       other       323584 Mar 21  2007 L1.TTFILE02.1730&lt;BR /&gt;-rw-rw-r--   1 root       other      1464320 Mar 21  2007 L1.TTFILE00.1733&lt;BR /&gt;-rw-rw-r--   1 root       other      1536000 Mar 21  2007 L1.TTFILE02.1731&lt;BR /&gt;&lt;BR /&gt;Wed Mar 21 09:59:36 SAST 2007&lt;BR /&gt;&lt;BR /&gt;Script Output:&lt;BR /&gt;&lt;BR /&gt;-rw-rw-r--   1 root       other       180224 Mar 21 09:12 /nfscdm/L1/tertiary/L1.TTFILE00.1731&lt;BR /&gt;-rw-rw-r--   1 root       other       196608 Mar 21 09:23 /nfscdm/L1/tertiary/L1.TTFILE02.1729&lt;BR /&gt;-rw-rw-r--   1 root       other        18432 Mar 21 08:30 /nfscdm/L2/tertiary/L2.TTFILE00.1576&lt;BR /&gt;-rw-rw-r--   1 root       other        20480 Mar 21 08:31 /nfscdm/L2/tertiary/L2.TTFILE02.1575&lt;BR /&gt;&lt;BR /&gt;Looking at the above you will notice that the output files from the script have the right date but they are fewer than the files at the source. Therefore not all files are copied. I think the "touch nowfile" line in the script has something to do with this. Is it ok to assume that if the script ran at an ealiear time before 0900Hrs like I did, I will get all files?</description>
      <pubDate>Wed, 21 Mar 2007 03:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964986#M95178</guid>
      <dc:creator>Olebile</dc:creator>
      <dc:date>2007-03-21T03:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: remote file copy from multiple directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964987#M95179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the statement&lt;BR /&gt;&lt;BR /&gt;touch nowfile&lt;BR /&gt;&lt;BR /&gt;will set a mark at the start of the script, that no files modified AFTER the start will be considered as copy candidates.&lt;BR /&gt;So the possibility is lowered (but is not zero) that you copy incomplete files. These skipped files will be copied at the next run of the script.&lt;BR /&gt;&lt;BR /&gt;But look carefully at the difference of this lines:&lt;BR /&gt;-rw-rw-r-- 1 root other 196608 Mar 21 09:23 L1.TTFILE02.1729&lt;BR /&gt;-rw-rw-r-- 1 root other 299008 Mar 21 2007 L1.TTFILE00.1732&lt;BR /&gt;&lt;BR /&gt;It seems to me be, that the system clocks of your local host and the NFS server differ and so the comparing of timestamp seems incorrect:&lt;BR /&gt;The output format of the second line tells us a timestamp in the future (relativly seen on the local host)!&lt;BR /&gt;&lt;BR /&gt;Keep in mind, that we create the stamp (on file nowfile) on the local filesystem, so no write access over NFS is necessary.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;PS: I really considered NOT to reply to your last question, since you do not honour the work of the answering forum members by giving points:&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;assigned points to   7  of   120  responses&lt;BR /&gt;&amp;lt;&amp;lt;</description>
      <pubDate>Wed, 21 Mar 2007 04:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remote-file-copy-from-multiple-directories/m-p/3964987#M95179</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-03-21T04:58:34Z</dc:date>
    </item>
  </channel>
</rss>

