The easy Weblog and Wiki Software
[ start | index | login ]
start > SnipSnap Command Line

SnipSnap Command Line

Created by driehle. Last edited by leo, 2 years and 64 days ago. Viewed 164 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
You can access a running SnipSnap server through a command line client. The client connects to the server using XML-RPC. General format of this is to run snipsnap-utils.jar with admin/password parameters, the URL for the XML-RPC, followed by the specific command you want to issue and its arguments.

Dumping a SnipSnap instance to a file:

  • java -Xmx512m -jar snipsnap/lib/snipsnap-utils.jar -url >>http://localhost:8668/$prefix -user $admin -password $passwd snipSnap.dumpXml /$prefix > $prefix.snip
ATTENTION: It looks like a bug in the utils jar converts some characters to '?' Try to dump using the setup web page.

Restoring a SnipSnap instance from a file:

  • java -Xmx512m -jar snipsnap/lib/snipsnap-utils.jar -user $admin -password $passwd -url >>http://localhost:8668/ snipSnap.restoreXml /$prefix file:$prefix.snip
(On this, also see Backup and Restore.)

Creating a new instance from the command line:

  • java -jars snipsnap/lib/snipsnap-utils.jar -user $admin -password $passwd -url >>http://localhost:8668/ snipSnap.install /$prefix $admin $passwd
Adjust the heap size to your needs (i.e. your instance size). $prefix is obviously your instance name, $admin is your admin account, and $passwd that account's password.

You don't have to be on the localhost---this works across a network. Your port may vary. Also, calling your backup files .snip is just a convention; could be .xml as well (that's what's being dumped).

Additional information can be reverse engineering from the source code at org.snipsnap.xmlrpc.SnipSnapHandler and related classes.

no comments | post comment

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13713 Snips. Installed 6 years and 42 days ago

Logged in Users: (2)
… and 5 Guests.

snipsnap-changed for older changes.

< August 2008 >
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
31

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST