![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Wil Blake wrote:
> Hi Roger,
> As you hinted, I would use the bash or sh shell "find" command available in
> Windows via Cygwin and also present in Mac (OS-X) and Linux. A stand-alone
> find for Windows may also exist.
>
> e.g find dir_path files changed in last 15 minutes and copy to dest_path
>
> find dir_path -amin 15 -exec cp \{\} dest_path \;
>
> e.g. find dir_path files newer than file file_path
> find dir_path -newer file_path -exec cp \{\} dest_path \;
>
> -Wil Blake
If you're going to the trouble to install Cygwin, you really should look
into rsync. It works on local and remote directories, and can use ssh
(secure) transport. rsync is much more efficient, especially in bulk,
and can compress while transferring files.
roliver_at_cygwin$ rsync -avz data forth.com:/home/roliver
will copy any newer files from my local "data" directory to
/home/roliver/data on forth.com. The "-z" option compresses the data.
It'll work in the other direction, too, if I made changes to the data
directory on forth.com:
roliver_at_cygwin$ rsync -avz forth.com:/home/roliver/data .
And it'll even copy local-to-local:
roliver_at_cygwin$ rsync -av data backup-data
Hope this helps.
-Ron
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Fri Aug 08 2008 - 08:04:44 PDT
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:21 PST