jmair Posted May 28, 2013 Posted May 28, 2013 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?
jmair Posted May 28, 2013 Author Posted May 28, 2013 (edited) 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? @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. Edited May 28, 2013 by jmair
Arthur Posted May 28, 2013 Posted May 28, 2013 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? 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/ 1
morganw Posted May 28, 2013 Posted May 28, 2013 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/unison/download/releases/stable/unison-manual.html#backups 1
jmair Posted May 28, 2013 Author Posted May 28, 2013 Thanks for the tip Morganw. I will check that out.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now