LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

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:
Code:
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:
Code:
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:
Code:
sitecopy --init sitename
The site can be updated to the server each time it changes by:
Code:
sitecopy -o --update sitename
Posted in Uncategorized
Views 1804 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

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

  



All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement

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