2013-03-14 00:42:56 +00:00
|
|
|
/*
|
Rename import paths from camlistore.org to perkeep.org.
Part of the project renaming, issue #981.
After this, users will need to mv their $GOPATH/src/camlistore.org to
$GOPATH/src/perkeep.org. Sorry.
This doesn't yet rename the tools like camlistored, camput, camget,
camtool, etc.
Also, this only moves the lru package to internal. More will move to
internal later.
Also, this doesn't yet remove the "/pkg/" directory. That'll likely
happen later.
This updates some docs, but not all.
devcam test now passes again, even with Go 1.10 (which requires vet
checks are clean too). So a bunch of vet tests are fixed in this CL
too, and a bunch of other broken tests are now fixed (introduced from
the past week of merging the CL backlog).
Change-Id: If580db1691b5b99f8ed6195070789b1f44877dd4
2018-01-01 22:41:41 +00:00
|
|
|
Copyright 2013 The Perkeep Authors.
|
2013-03-14 00:42:56 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2018-03-05 23:07:54 +00:00
|
|
|
The pk binary is a collection of commands to help with the use of
|
2014-02-28 05:23:01 +00:00
|
|
|
a camlistore server. Notably, it can initialize a database for the
|
|
|
|
indexer, and it can sync blobs between blobservers.
|
2013-03-14 00:42:56 +00:00
|
|
|
|
2013-03-15 18:26:24 +00:00
|
|
|
Usage:
|
|
|
|
|
2018-03-05 23:07:54 +00:00
|
|
|
pk [globalopts] <mode> [commandopts] [commandargs]
|
2013-03-14 00:42:56 +00:00
|
|
|
|
|
|
|
Modes:
|
|
|
|
|
2018-01-30 11:02:56 +00:00
|
|
|
env: Return Perkeep environment information
|
2014-03-23 15:08:14 +00:00
|
|
|
googinit: Init Google Drive or Google Cloud Storage.
|
2014-02-28 05:23:01 +00:00
|
|
|
list: List blobs on a server.
|
|
|
|
claims: Ask the search system to list the claims that modify a permanode.
|
|
|
|
dumpconfig: Dump the low-level server config from its simple config.
|
|
|
|
describe: Ask the search system to describe one or more blobs.
|
|
|
|
discovery: Perform configuration discovery against a server.
|
|
|
|
reindex-diskpacked: Rebuild the index of the diskpacked blob store
|
|
|
|
index: Synchronize blobs for all discovered blobs storage - indexer pairs.
|
2013-03-14 00:42:56 +00:00
|
|
|
sync: Synchronize blobs from a source to a destination.
|
|
|
|
dbinit: Set up the database for the indexer.
|
|
|
|
debug: Show misc meta-info from the given file.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2018-03-05 23:07:54 +00:00
|
|
|
pk sync --all
|
|
|
|
pk sync --src http://localhost:3179/bs/ --dest http://localhost:3179/index-mem/
|
2014-02-28 05:23:01 +00:00
|
|
|
|
2018-03-05 23:07:54 +00:00
|
|
|
pk dbinit -user root -password root -host localhost -dbname camliprod -wipe
|
2013-03-14 00:42:56 +00:00
|
|
|
|
|
|
|
For mode-specific help:
|
|
|
|
|
2018-03-05 23:07:54 +00:00
|
|
|
pk <mode> -help
|
2013-03-14 00:42:56 +00:00
|
|
|
|
|
|
|
Global options:
|
|
|
|
-help=false: print usage
|
|
|
|
-verbose=false: extra debug logging
|
|
|
|
-version=false: show version
|
|
|
|
*/
|
2018-03-05 23:07:54 +00:00
|
|
|
package main // import "perkeep.org/cmd/pk"
|