Rakesh "arky" Ambati wrote:

Can anyone provide me better way| script to sync local
website files with that of remote server's over ftp.




1. cd <to_your_webserver_directory>
2. Run a cron script for doing the following -
wget ftp://<ftp_server_ip>/<desired_file>
* Store the user name and password in .wgetrc file [so that it wont be visible by "ps"]
chrown/chmod the files


Some more complex script can be written which will compare the timestamp of the files available in ftp server and in http server and then update!!

iti
Archan



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to