View Full Version : File Copy
I need to regularly copy a file from one server to another, is there an easy way to set up a cronjob to do this? I was thinking of just issuing a wget and putting the file in a web-accessible directory -- but wget does not overwrite the file.
Any thoughts?
Matt Wade
02-01-03, 11:12 AM
From the wget manual:
When running Wget with -r, but without -N or -nc, re-downloading a file will result in the new copy simply overwriting the old.
Originally posted by Matt Wade
When running Wget with -r, but without -N or -nc, re-downloading a file will result in the new copy simply overwriting the old.
Hmm...I guess I should have tried "man wget" before making assumptions :).
Now, I just have to see if I can figure out the proper syntax.
Matt Wade
02-01-03, 12:32 PM
I've thought about this a little bit and a better method might be to just use ftp:
ftp http://hosthideout.com/ravioimages/logo.gif
that will grab overwrite...much easier syntax than the wget...
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.