Difference between revisions of "Sitecopy"

From Gramps
Jump to: navigation, search
m (http://www.manyfish.co.uk/sitecopy/)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{languages}}
 
{{languages}}
The easiest way to transfer your GRAMPS html files is with a program called '''Sitecopy'''
+
The easiest way to transfer your Gramps html files is with a program called '''[http://www.manyfish.co.uk/sitecopy/ Sitecopy]'''
  
 
A program for managing a WWW site via FTP, DAV or HTTP sitecopy is for copying locally stored websites to remote ftp servers. With a single command, the program will synchronize a set of local files to a remote server by performing uploads and remote deletes as required. The aim is to remove the hassle of uploading and deleting individual files using an FTP client. sitecopy will also optionally try to spot files you move locally, and move them remotely.
 
A program for managing a WWW site via FTP, DAV or HTTP sitecopy is for copying locally stored websites to remote ftp servers. With a single command, the program will synchronize a set of local files to a remote server by performing uploads and remote deletes as required. The aim is to remove the hassle of uploading and deleting individual files using an FTP client. sitecopy will also optionally try to spot files you move locally, and move them remotely.
  
If you use Ubuntu you can get the program via ''Synaptic''. Current version is 1:0:16.3-10 for Gutsy.
+
If you use Ubuntu you can get the program via ''Synaptic''.
  
It is only 463 kB. It needs ''libc6'' and ''libneon''. But that should on a normal Linux distribution be ok.
+
After installation in 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).
  
There is also a GUI: xsitecopy, but you cannot use both together. I stick to [http://www.manyfish.co.uk/sitecopy/ sitecopy].
+
<code>mkdir ~/.sitecopy</code>
  
Seems that this link is not working. Anyway the man pages gives you enough info to start.
+
and with your text editor do (I use gedit)
  
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>gedit  ~/.sitecopyrc</code>
<code>
 
  mkdir ~/.sitecopy
 
</code>
 
  
and with your text editor do (I use gedit)
+
Add the relevant info into '''.sitecopyrc'''
<code>
 
  gedit  ~/.sitecopyrc
 
</code>
 
 
 
Put the relevant ifo into '''.sitecopyrc'''
 
 
*site name of your site e.g. mijnsite
 
*site name of your site e.g. mijnsite
 
*server name of server e.g. users.skynet.be
 
*server name of server e.g. users.skynet.be
Line 35: Line 27:
  
 
Make sure you have all the required rights.
 
Make sure you have all the required rights.
<code>
+
 
    chmod 700 ~/.sitecopy
+
<code>chmod 700 ~/.sitecopy</code><br />
    chmod 600 ~/.sitecopyrc
+
<code>chmod 600 ~/.sitecopyrc</code>
</code>
 
  
 
There are lots of options, but the most important one is '''--update'''.
 
There are lots of options, but the most important one is '''--update'''.
  
 
Simply do  
 
Simply do  
<code>
+
 
  sitecopy -u mijnsite
+
<code>sitecopy -u mijnsite</code>
</code>
 
  
 
Upload the local files to update the FTP (remote files will be overwritten). Other important options are
 
Upload the local files to update the FTP (remote files will be overwritten). Other important options are

Revision as of 06:37, 15 July 2015

The easiest way to transfer your Gramps html files is with a program called Sitecopy

A program for managing a WWW site via FTP, DAV or HTTP sitecopy is for copying locally stored websites to remote ftp servers. With a single command, the program will synchronize a set of local files to a remote server by performing uploads and remote deletes as required. The aim is to remove the hassle of uploading and deleting individual files using an FTP client. sitecopy will also optionally try to spot files you move locally, and move them remotely.

If you use Ubuntu you can get the program via Synaptic.

After installation in 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).

mkdir ~/.sitecopy

and with your text editor do (I use gedit)

gedit ~/.sitecopyrc

Add the relevant info 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.

chmod 700 ~/.sitecopy
chmod 600 ~/.sitecopyrc

There are lots of options, but the most important one is --update.

Simply do

sitecopy -u mijnsite

Upload the local files to update the FTP (remote files will be overwritten). Other important options are

  • fetch
  • synchronize
  • list