Published by Niels on 03 Mar 2006
Alas, poor sl, I knew him well
To update a site created by NanoBlogger you either have to:
- Painfully copy the newly created entries by hand and move or remove all other files.
- Use a protocol like rsync. But some of us are not fortunate enough to have a hosting company that offers this protocol (as a side note: that is about the only shortcoming I can think of regarding BHosted).
- Brew your own update script that works quite well, but is still a little rough around the edges. In order the smooth things out you would have to spend considerable time which you don’t have.
Or you can read the NanoBlogger newsgroup where a question on site-synchronization was answered by me and then by someone else who had a better answer.
So suffice to say that I will be no longer using my home-brew sl, instead I will be using sitecopy. It works on the same principle as my own solution, only more mature and maintained by somebody else :). The observant reader will notice that sl no longer is in my category list. The entries and the program will stay however. So if needed they can still be found.
Sitecopy is very simple. All it needs are two things:
- An entry in a file called
.sitecopyrcin your$HOME, where an entry has to be created per website. The permissions of the file have to be set to 600. Mine looks like this:site heirbaut.nl server server9.bhosted.nl protocol sftp rsh "ssh" rcp "sftp" username *** password *** local /home/niels/Projects/www/www.heirbaut.nl/ remote /srv/nielsh/www/www.heirbaut.nl/ state checksum checkmoved renames - A working directory called
.sitecopyin$HOMEwith the permissions set to 700.