Register a domain and help support LQ
Go Back > Blogs > neonsignal
User Name


Rate this Entry

bulk uploading a web site via ftp

Posted 05-24-2011 at 10:06 AM by neonsignal
Updated 05-24-2011 at 05:39 PM by neonsignal

The sitecopy application can be used to automate the ftp uploading of websites. It keeps a local record of files, so that only updated files need to be uploaded on each refresh.

After installing sitecopy, it needs a cache directory and a configuration file in the home directory:
mkdir -m 700 .sitecopy
touch .sitecopyrc
chmod 600 .sitecopyrc
The configuration file .sitecopyrc contains details about the web site(s). Each site entry looks like this:
site sitename
   server server domain
   remote root of server folder
   local root of local folder
   username ftp username
To initialize the indexing of the local files:
sitecopy --init sitename
The site can be updated to the server each time it changes by:
sitecopy -o --update sitename
Posted in Uncategorized
Views 1836 Comments 1
« Prev     Main     Next »
Total Comments 1


  1. Old Comment
    Posted 05-24-2011 at 01:06 PM by peonuser peonuser is offline


All times are GMT -5. The time now is 08:06 AM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration