View Full Version : Vista - Easy way to sync local folder with web folder?
Just been thinking of a little thing I'd like to be able to do for automating some downloads whilst not at home.
Is there an easy way I can upload a file (nzb) onto a folder on my webspace. This is then checked by the Vista machine at set intervals and sync'd to a local folder.
Is there an easy way to do this?
Got this sorted now :)
Downloaded a copy of Robotask and it looks really good. Loads of options to choose from.
Mine is now set so that it logs on via ftp, checks a certain folder and downloads the contents into a local folder, deletes the web folder files and logs off. Runs every 5 minutes :D
Download this: http://dwuk.net/misc/wget.zip
Extract the exe and put it in system32.
Then schedule this to run as often as you like, changing the source and destination as you need:
wget -r -nd --level=1 -A nzb -N -np -P "C:\my\target\dir" http://www.domain.com/web-folder
That will only download new nzb's and put them where you want. What it wont do is delete files off your hard drive if you delete them from the web server, but its the quickest easiest way I can think of, and it'll let you do what you're want (which I guess is start downloads at home while you're at work), and it's free. If you wanted you could password protect the directory and add the user/pass to the command, which would stop randoms stumbling onto it.
[edit]That'll teach me to walk away mid post :p
Hehe, cheers Daz. I knew there'd be some kind of script that would do it. As it happens, Robotask is pretty damn good and has loads of options for more tasks so I think I might just stick with it for now.
Hoping to setup an old spare machine for file serving and downloads. This will now automate the whole process :)
Heh, no worries :)
I'm never a fan of those sorts of apps myself as they're usually not free, require someone to be logged in and are pretty much exclusive to windows. These days when I want something like this I either use linux utilities ported to Windows (as I know they're free, can be ran without being logged in, and I can run them on either windows or linux as I need), or write scripts in languages I can use on either OS. I try to blur the lines between what I can and cant do in each OS as best I can these days :)
vBulletin® v3.7.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.