Jump to content

Recommended Posts

Posted
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?
Posted (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 by jmair
Posted
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/

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...