PDA

View Full Version : Copy Folder to new location every day at midnight?


ianhull
02-15-2005, 05:58 AM
Hi all, is it possible to schedule a folder copy from one location to another?

I am looking into a backup solution for our company files, they are all just in a folder on a secondary drive but I would like them to be copied to a thrid drive every night.

Can anyone please help with this?

Thanks guys.

Corey
02-15-2005, 06:09 AM
Sure, there are lots of ways to do this. If you restart your computers each day, simply set your app to use a registry key to copy the folder, "every 3 startups". That's ideal because it takes no resources.

ianhull
02-15-2005, 06:18 AM
Thanks for the quick reply Corey,

I am not sure how to use the registry, Is there any way of checking the system clock for a specific time and then copying the folder if the time is matched?

The computers are never turned off as they are hosting files via ftp access.

Thanks.

Corey
02-15-2005, 06:30 AM
Hi. OK in that case it's real easy, just create a utility to copy the folder and add it to your Windows Task Scheduler set to whatever frequency you require. :)

http://www.iopus.com/guides/winscheduler.htm

sside
02-15-2005, 07:02 AM
ianhull

Here you have an example to copy the content of a folder to another folder at a given time. Insert the desired time at the second input object and let the application do the rest. It will notify you if the copy failed or succeded. Of course you must change the given folder locations first with yours.
This is just an example to get you started.

Josh
02-16-2005, 01:02 AM
That example works just great! Any chance someone could tell me how I can set the destination folder to a server? here is the path

\\Slc-cst\slc-cst\Common\system

sside
02-16-2005, 07:03 AM
\\Slc-cst\slc-cst\Common\system
\\\\Slc-cst\\slc-cst\\Common\\system

sside
02-16-2005, 05:13 PM
Here (http://applications.ssideproject.com/downloads/FolderCopy.zip) is a ready to go application to copy files from one location to another at a given time.

ianhull
02-19-2005, 05:37 AM
Thanks you guys,

I really appreciate your help.

Ian

sferguson
02-21-2005, 11:20 PM
Hey that's great sside, thanks!

Has anyone attempted any modifications that copy between two machines at different locations (via ftp or similar connection)?

sside
02-22-2005, 09:00 AM
Has anyone attempted any modifications that copy between two machines at different locations (via ftp or similar connection)?

Are you asking if it is possible to copy files from computer a to computer b when the application itself is at computer c in a (local) network computers (no ftp)? If that is the question then yes is the answer.
To this program very easy a mail notification option can be added to let the user know how the file copy ended. May be sometime i add that too...

sferguson
02-23-2005, 09:04 AM
Well, actually the specific scenario in mind is:

Computer A (Webserver at Main Office)
- has directory where company PDF files are saved

Computer B (WinXP Pro Workstation at Remote Office)
- employees use attached scanner to save PDF files on local hard drive

Goal: Use the CopyFolder app to copy (upload) files from Computer B to a directory on the Webserver (Computer A). The CopyFolder app itself could be located on either machine.

I suppose if Computer A and Computer B were connected through a VPN or WAN, it would work just as if the two machines were "local".

However, currently a VPN or WAN is not available, so I'm exploring options for the files to be automatically sent to the webserver, using some variation of a standard Internet connection.

sside
02-23-2005, 01:13 PM
I see your point.
It can be done. If i come up with some solution i will post it here.

sferguson
02-24-2005, 08:23 PM
Without a doubt, that would be wonderful, and... I would be truly grateful. :wow Just for the record though, I didn't mean to sound as though I were fishing for a finished product...just wanted to get the ol' wheels turnin'. Most of the web-related dev I've worked on all takes place on local boxes, so FTP'in files "to and fro" is new territory for me :o

sside
02-26-2005, 02:54 PM
... Just for the record though, I didn't mean to sound as though I were fishing for a finished product...
What i create, i create with pleasure. What i share, i share with pleasure.
Here you have the application: http://www.indigorose.com/forums/showthread.php?t=10521.
Place the application at any workstation insert the host data, wanted time, location where the files to be uploaded are, location where you want to upload the files, and let the application do the rest. If something goes wrong it will let you know what went wrong. I have done lots of testings.
But still remain some questions, like what you do with the files at the workstation after you upload them? Next time the application start it will find them again and upload them again and you don't want that.