cells-enterprise admin datasource snapshot

./cells-enterprise admin datasource snapshot

Dump/Load snapshot of the index for a flat datasource

Synopsis

DESCRIPTION

For flat format datasources, files are stored horizontally with UUID as their names inside the storage. The associated tree structure (files and folders) is maintained in the Cells database only. For backup/restore operations, it can be useful to regularly dump a snapshot of this tree structure inside a particular file inside the storage, which can be later used to reload data on a clean installation.

This command allows to dump/load the index on-file.

EXAMPLES

  1. Dump database index inside a snapshot.db file inside the datasource storage: $ ./cells-enterprise admin datasource snapshot --datasource=pydiods1 --operation=dump --basename=snapshot.db

  2. Reload database index from a snapshot.db file located inside the datasource storage: $ ./cells-enterprise admin datasource snapshot --datasource=pydiods1 --operation=load --basename=snapshot.db

  3. Remove a known snapshot.db file from datasource storage: $ ./cells-enterprise admin datasource snapshot --datasource=pydiods1 --operation=delete --basename=snapshot.db

./cells-enterprise admin datasource snapshot [flags]

Options

  -b, --basename string     Basename of the snapshot file inside the datasource storage bucket (default "snapshot.db")
  -d, --datasource string   Name of datasource to resynchronize
  -f, --force               Force operation, skip confirmation prompts
  -h, --help                help for snapshot
  -o, --operation string    One of [dump|load|delete] to either dump index, reload an existing snapshot, or remove a snapshot (default "dump")

Options inherited from parent commands

      --broker string                           Pub/sub service for events between services (currently nats only) (default "memory")
      --nats_address string                     NATS server address (default ":4222")
      --nats_cluster_address string             NATS server cluster address
      --nats_cluster_routes string              NATS server cluster routes
      --nats_monitor_port int                   Expose nats monitoring endpoints on a given port (default 8222)
      --nats_streaming_cluster_bootstrap        NATS streaming bootstrap cluster
      --nats_streaming_cluster_id string        NATS streaming cluster ID (default "cells")
      --nats_streaming_cluster_node_id string   NATS streaming cluster node id
      --nats_streaming_cluster_peers string     NATS streaming list of cluster peers
      --nats_streaming_clustered                NATS streaming clustered
      --nats_streaming_store string             NATS streaming store type (default "MEMORY")
      --port_broker int                         Port used to start a broker discovery service (default 8003)
      --port_registry int                       Port used to start a registry discovery service (default 8000)
      --registry string                         Registry used to manage services (currently nats only) (default "memory")
      --transport string                        Transport protocol for RPC (default "grpc")

SEE ALSO

Auto generated by Pydio Cells Enterprise Distribution v3.0.2 on 11-Nov-2021
Back to top