[robg adds: Please note that this tip is for those of you who have set up custom .mac homepages. If you're using the standard .mac pages, you don't need this hint. I haven't tested it yet, but I will soon, as I just updated my page last night and this would have made it much easier!]
How to synchronize a local folder with your .mac homepage:
- Install Fink. I downloaded the most recent version: 0.51 for Mac OS X 10.2.
- Since sitecopy is an untested package, you have to move the info file from the unstable packages to the local directory, using:
This step might change if you're using a different version of Fink. I first tried installing the sitecopy package (without SSL), but had some trouble with a dependent package called neon-shlib.cp /sw/fink/10.2/unstable/crypto/finkinfo/sitecopy-ssl-0.11.4-5.info \ /sw/fink/10.2/local/main/finkinfo/
- Run the following command to download, compile and install the package:
This package has a lot of dependencies. Using a fresh Fink installation on a cable connection, it took about three hours to download and compile all the required packages on a PowerMac G4/400.fink install sitecopy-ssl
- Close your terminal window and open a new one or type rehash to be able to use sitecopy.
- Type the following commands on a terminal window to create setup files:
% cd ~ % mkdir -m 700 .sitecopy % touch .sitecopyrc % chmod 600 .sitecopyrc - Using your favorite text editor, create a new site definition in your .sitecopyrc file. You may have several site definitons in this file. Sitecopy supports FTP and WebDAV. The following settings are for a WebDAV site like the .mac iDisk:
site server idisk.mac.com remote //Sites/ local /Library/WebServer/Documents/ username password protocol webdav http expect
For example:site mysite server idisk.mac.com remote /johndoe/Sites/Blog/ local /Library/WebServer/Documents/Blog/ username johndoe password johndoespassword protocol webdav http expect
Replace:
- mysite with any identifier for your site
- johndoe with your .mac username
- johndoespassword with your .mac password
- remote specifies the remote directory where your site will be uploaded. In this example, I used a subdirectory called Blog, inside the Sites folder.
- local refers to the directory in your computer where you keep your site's local copy.
Type
man sitecopyto learn about other options. - Finally, use any of the following commands to set up your synchronization:
sitecopy --catchup sitenameif you have an existing remote site.
sitecopy --catchup sitenameif you have an existing remote site.
sitecopy --fetch sitenameto discover what is on the remote site, followed bysitecopy --synch sitenameto download it.
sitecopy --init sitenameif you have a new remote site. Make sure that your remote directory has already been created on the server.
sitecopy --update sitenameto update the remote copy of the site.
sitecopy sitenameto learn about changes you have made to the local site since the last update.
http secure option doesn't seem to work with .mac servers.

