top

The camput tool mainly pushes blobs, files, and directories. It can also perform various related tasks, such as setting tags, creating permanodes, and creating share blobs.

Usage:

camput [globalopts] <mode> [commandopts] [commandargs]

Modes:

delete: Create and upload a delete claim.
attr: Add, set, or delete a permanode's attribute.
file: Upload file(s).
init: Initialize the camput configuration file. With no option, it tries to use the GPG key found in the default identity secret ring.
permanode: Create and upload a permanode.
rawobj: Upload a custom JSON schema blob.
share: Grant access to a resource by making a "share" blob.
blob: Upload raw blob(s).

Examples:

camput file [opts] <file(s)/director(ies)
camput file --permanode --name='Homedir backup' --tag=backup,homedir $HOME
camput file --filenodes /mnt/camera/DCIM

camput blob <files>     (raw, without any metadata)
camput blob -           (read from stdin)

camput permanode                                (create a new permanode)
camput permanode -name="Some Name" -tag=foo,bar (with attributes added)

camput init
camput init --gpgkey=XXXXX

camput share [opts] <blobref to share via haveref>

camput rawobj (debug command)

camput attr <permanode> <name> <value>         Set attribute
camput attr --add <permanode> <name> <value>   Adds attribute (e.g. "tag")
camput attr --del <permanode> <name> [<value>] Deletes named attribute [value

For mode-specific help:

camput <mode> -help

Global options:

-help=false: print usage
-secret-keyring="~/.gnupg/secring.gpg": GnuPG secret keyring file to use.
-server="": Camlistore server prefix. If blank, the default from the "server" field of
~/.camlistore/config is used.
Acceptable forms: https://you.example.com, example.com:1345 (https assumed),
or http://you.example.com/alt-root
-verbose=false: extra debug logging
-verbose_http=false: show HTTP request summaries
-version=false: show version

Imports 19 package(s) ΒΆ

  1. camlistore.org/pkg/blob
  2. camlistore.org/pkg/cmdmain
  3. camlistore.org/pkg/schema
  4. camlistore.org/internal/chanworker
  5. camlistore.org/pkg/client/android
  6. camlistore.org/pkg/constants
  7. camlistore.org/pkg/blobserver/stats
  8. camlistore.org/pkg/osutil
  9. camlistore.org/pkg/types/clientconfig
  10. camlistore.org/pkg/blobserver
  11. camlistore.org/pkg/blobserver/dir
  12. camlistore.org/pkg/client
  13. golang.org/x/net/context
  14. github.com/syndtr/goleveldb/leveldb
  15. go4.org/syncutil
  16. camlistore.org/pkg/auth
  17. camlistore.org/pkg/httputil
  18. camlistore.org/pkg/jsonsign
  19. camlistore.org/pkg/search