I have machine on which the files are uploaded by ftp. From this machine I would like to run cronjob and scp/rsync (simply copy them) to different machine in the same network.The problem is I don't want to copy files which are not coplete (still during transfer)Is there a possibility to check whether a file is complete and only then copy to another server?
Operations only on complete files
files;monitoring;file copy
You can use lsyncd:Lsyncd watches a local directory trees event monitor interface  (inotify or fsevents). It aggregates and combines events for a few  seconds and then spawns one (or more) process(es) to synchronize the  changes. By default this is rsync.You can specify the time out after which a file has changed is to be synced. Set it to e.g. five times the typical upload time and you're probably fine.