Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 20-11-2007, 18:27   #1
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default 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?
Desmo is offline   Reply With Quote
Old 21-11-2007, 11:51   #2
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

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
Desmo is offline   Reply With Quote
Old 21-11-2007, 12:21   #3
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

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:

Code:
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
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 21-11-2007, 12:25   #4
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

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
Desmo is offline   Reply With Quote
Old 21-11-2007, 12:30   #5
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

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
__________________
apt-get moo
Daz is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 15:38.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.