github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/cmd/camtool/doc.go (about) 1 /* 2 Copyright 2013 The Camlistore Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 /* 18 Camtool is a collection of commands to help with the use of a camlistore server. Notably, it can initialize a database for the indexer, and it can sync blobs between blobservers. 19 20 21 Usage: 22 23 camtool [globalopts] <mode> [commandopts] [commandargs] 24 25 Modes: 26 27 sync: Synchronize blobs from a source to a destination. 28 dbinit: Set up the database for the indexer. 29 gsinit: Init Google Storage. 30 debug: Show misc meta-info from the given file. 31 32 Examples: 33 34 camtool dbinit -user root -password root -host localhost -dbname camliprod -wipe 35 36 camtool sync --all 37 camtool sync --src=http://localhost:3179/bs/ --dest=http://localhost:3179/index-mem/ 38 camtool sync --src=http://localhost:3179/bs/ --dest=/tmp/some/path 39 40 For mode-specific help: 41 42 camtool <mode> -help 43 44 Global options: 45 -help=false: print usage 46 -verbose=false: extra debug logging 47 -version=false: show version 48 */ 49 package main