0

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

4

2 に答える 2

1

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.

于 2009-10-14T17:53:19.890 に答える
0

inotifyscp / ftpを使用するpythonスクリプトをまとめます。

これらはすべて一般的なものであり、使用しているディストリビューションでサポートされている必要があります。それらはすべてかなりよく文書化されています。

于 2009-10-14T17:59:51.360 に答える