Changes

Jump to: navigation, search

Sitecopy

1,372 bytes added, 08:26, 28 January 2008
no edit summary
There is also a GUI: xsitecopy, but you cannot use both together. I stick to [http://www.lyra.org/sitecopy sitecopy].
 
Seems that this link is not working. Anyway the man pages gives you enough info to start.
 
After installation we a directory '''/home/user/.sitecopy''' (where the relevant update information is stored) and a config script '''/home/user/.sitecopyrc''' (where the what and where is stored).
<code>
mkdir ~/.sitecopy
</code>
 
and with your text editor do (I use gedit)
<code>
gedit ~/.sitecopyrc
</code>
 
Put the relevant ifo into '''.sitecopyrc'''
*site name of your site e.g. mijnsite
*server name of server e.g. users.skynet.be
*protocol ftp
*port 21
*ftp nopasv
*username put your username for the site here
*password put your password for the server here
*local the directory where you locally store your files e.g. /home/user/site
*remote / the directory where you store your html pages on the server
*exclude *~ all files that will not be transferred. This is important because otherwise '''all''' files will be put onto the server. There is no need to have those '''~''' on the server.
 
Make sure you have all the required rights.
<code>
chmod 700 ~/.sitecopy
chmod 600 ~/.sitecopyrc
</code>
 
There are lots of options, but the most important one is '''--update'''.
 
Simply do
<code>
sitecopy -u mijnsite
</code>
 
Upload the local files to update the FTP (remote files will be overwritten). Other important options are
*fetch
*synchronize
*list
3,245
edits

Navigation menu