Windows Server 2008 R2 Thread, Real Time data copy? in Technical; Can anyone think of a file copy solution from one folder to another, that will copy over only new files ...
1. ## Real Time data copy?

Can anyone think of a file copy solution from one folder to another, that will copy over only new files in real time (automated)? For example, when I ftp a file to our server, said solution will make a copy of that file and place it into another folder for shared access?

2. Robocopy with the /mir switch?

Ben

3. Windows: DFS-R
Linux: lsyncd

4. Originally Posted by morganw
Windows: DFS-R
Linux: lsyncd
This is the basic batch I'm running now. Works great, except when I upload a file with the same name as one already in the destination folder, the destination file gets overwritten and I need a copy of both. So I will need to rename the file in the destination folder to time/date first so I will have both versions. Perhaps this is the wrong place for such a question?

Code:
   @echo off
cls
:start
echo Checking if I can copy
xcopy C:\location\left C:\location\right /d /s /r /y
timeout /t 10
goto start

I could have sworn that we used to have a code/script section. Couldn't find it so I'm dumping it here.

5. Originally Posted by jmair
Works great, except when I upload a file with the same name as one already in the destination folder, the destination file gets overwritten and I need a copy of both.
If you do not delete anything in the destination folder, won't it get really big over time?

Originally Posted by jmair
I could have sworn that we used to have a code/script section. Couldn't find it so I'm dumping it here.
We do.

www.edugeek.net/forums/scripts/

6. ## Thanks to Arthur from:

jmair (28th May 2013)

7. Maybe look at Unison instead then, if you need to keep backup copies of things that have changed, and you are on Windows.
http://www.cis.upenn.edu/~bcpierce/u...l.html#backups

8. ## Thanks to morganw from:

jmair (28th May 2013)

9. Thanks for the tip Morganw. I will check that out.

SHARE: