I just set up my .mac homepage, and was looking for a way to synchronize the changes to the site on my local copy with the .mac server. I found a tool called sitecopy, available through fink, that does exactly what I needed. Follow the steps detailed in the rest of the article to synchronize your custom homepage.
[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:
cp /sw/fink/10.2/unstable/crypto/finkinfo/sitecopy-ssl-0.11.4-5.info \
/sw/fink/10.2/local/main/finkinfo/
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.
fink install sitecopy-ssl
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.
% cd ~
% mkdir -m 700 .sitecopy
% touch .sitecopyrc
% chmod 600 .sitecopyrc
site server idisk.mac.com remote //Sites/ local /Library/WebServer/Documents/ username password protocol webdav http expectFor example:
site mysite server idisk.mac.com remote /johndoe/Sites/Blog/ local /Library/WebServer/Documents/Blog/ username johndoe password johndoespassword protocol webdav http expectReplace:
Type man sitecopy to learn about other options.
sitecopy --catchup sitename if you have an existing remote site.sitecopy --catchup sitename if you have an existing remote site.sitecopy --fetch sitename to discover what is on the remote site, followed by sitecopy --synch sitename to download it.sitecopy --init sitename if you have a new remote site. Make sure that your remote directory has already been created on the server.sitecopy --update sitename to update the remote copy of the site.sitecopy sitename to 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.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030316214150913