From cacd64d8635201459e59bf2cd8a2ea8fd0699b84 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Thu, 13 Apr 2017 21:22:29 -0500 Subject: Rewrite gnunet-datastore to dump to a file --- doc/man/gnunet-datastore.1 | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/man/gnunet-datastore.1 b/doc/man/gnunet-datastore.1 index 14372a49b..1605006b3 100644 --- a/doc/man/gnunet-datastore.1 +++ b/doc/man/gnunet-datastore.1 @@ -1,6 +1,6 @@ -.TH gnunet\-datastore "1" "30 May 2013" "GNUnet" +.TH gnunet\-datastore "1" "13 April 2017" "GNUnet" .SH NAME -gnunet\-datastore \- merge or convert GNUnet datastore databases +gnunet\-datastore \- dump or insert (restore) GNUnet datastore databases .SH SYNOPSIS .B gnunet\-datastore @@ -8,26 +8,32 @@ gnunet\-datastore \- merge or convert GNUnet datastore databases .SH DESCRIPTION .PP -gnunet\-datastore can be used to convert or merge GNUnet datastores. This is useful if a datastore is to be migrated between SQL databases, i.e. from sqlite to postgres or vice versa. gnunet\-datastore basically takes two configuration files (which must specify different databases) and reads in all of the data from the datasource (\-s option) and copies it to the destination (\-c option). Note that replication level information is lost in the process at this time. +gnunet\-datastore can be used to backup and restore or merge GNUnet datastores. This is useful if a datastore is to be migrated between SQL databases, i.e. from sqlite to postgres or vice versa. gnunet\-datastore will dump the entire contents of the database or insert a dump file into the database. .TP \fB\-c \fIFILENAME\fR, \fB\-\-config=FILENAME\fR -configuration file to use for the destination database +configuration file to use +.TP +\fB\-d\fR, \fB\-\-dump\fR +dump all records to a file +.TP +\fB\-f \fIFILENAME\fR, \fB\-\-file=FILENAME\fR +file to dump to or insert from. Otherwise stdin/stdout are used. .TP \fB\-h\fR, \fB\-\-help\fR print help page .TP +\fB\-i\fR, \fB\-\-insert\fR +insert from dump file +.TP \fB\-L \fILOGLEVEL\fR, \fB\-\-loglevel=LOGLEVEL\fR Change the loglevel. Possible values for LOGLEVEL are ERROR, WARNING, INFO and DEBUG. .TP -\fB\-s \fIFILENAME\fR, \fB\-\-sourcecfg=FILENAME\fR -configuration file to use for the source database +\fB\-l \fIFILENAME\fR, \fB\-\-logfile=FILENAME\fR +configure logging to write logs to FILENAME .TP \fB\-v\fR, \fB\-\-version\fR print the version number -.TP -\fB\-V\fR, \fB\-\-verbose\fR -be verbose .SH NOTES -- cgit v1.2.3