I have a new script to export my blogg to my webserver, based on a script on Pesche Schlau’s homepage.
I modified it a little, here is mine:
#!/bin/sh
# publish a nanoblogger blog
PUB_HOST="ftp.to.my.site"
PUB_LOGIN="login,password"
PUB_PATH="path/on/server"
cd $BLOG_DIR
# Include all except cache/ data/ parts/ blog.conf export.sh
PUB_PATTERN="-I * -X cache/ -X data/ -X parts/ -x blog.conf -x export.sh"
lftp -c "open -u $PUB_LOGIN $PUB_HOST; mirror -v -R $PUB_PATTERN . $PUB_PATH"
[Note: Changed from nanoblogger so this is only a referense]
Categories: English, Old Blog
Comments Off