Dean
Dean

Reputation: 1

Upload to ftp on change

I like the functionality of dreamweaver where you can add a site and define an ftp and then when you save a file it saves a local copy and also uploads a file via ftp. I am trying to get similar functionality with linux. What I have thought of doing is have inotify monitor a local folder and upload any new or changed files to an ftp site, but I am having a hard time finding information on this. Any ideas on how I can accomplish this?

Also, I do not want to install any programs on the ftp server.

Thanks Dean

Upvotes: 0

Views: 1010

Answers (2)

Dean J
Dean J

Reputation: 40298

You might want to take a look at cron scheduling an rsync job, which will efficiently copy changed files across a network at a chosen interval. rsync will use ssh or rsh (not ftp), so this might not work, but would seem a better way in most cases.

Upvotes: 1

mimetnet
mimetnet

Reputation: 657

I'd throw together a python script which uses inotify and scp/ftp.

These are all common and should be supported by whatever distro your using. They're also all pretty well documented.

Upvotes: 0

Related Questions