bulk uploading a web site via ftp
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:
The configuration file .sitecopyrc contains details about the web site(s). Each site entry looks like this:
To initialize the indexing of the local files:
The site can be updated to the server each time it changes by:
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
Code:
site sitename server server domain remote root of server folder local root of local folder username ftp username
Code:
sitecopy --init sitename
Code:
sitecopy -o --update sitename
Total Comments 1
Comments
-
hmmm..
Posted 05-24-2011 at 01:06 PM by peonuser