Files
docker-docs/datacenter/ucp/2.0/reference/cli/backup.md
Adrien Duermael 50ee158a65 CI - added test for keywords in markdown frontmatters (#805)
* added test for keywords

Signed-off-by: Adrien Duermael <adrien@duermael.com>

* fixed keywords in some md files for tests to pass

Signed-off-by: Adrien Duermael <adrien@duermael.com>

* fixed keywords in /datacenter

Signed-off-by: Adrien Duermael <adrien@duermael.com>

* tests/Dockerfile: no need to add git

Signed-off-by: Adrien Duermael <adrien@duermael.com>

* tests/Dockerfile: changed maintainer

Signed-off-by: Adrien Duermael <adrien@duermael.com>
2016-12-06 16:45:11 -08:00

1.5 KiB

description, keywords, title
description keywords title
Create a backup of a UCP manager node docker, dtr, cli, backup docker/ucp backup

Create a backup of a UCP manager node

Usage


docker run -i --rm \
  --name ucp \
  -v /var/run/docker.sock:/var/run/docker.sock \
  docker/ucp \
  backup [command options] > backup.tar

Description

This command creates a tar file with the contents of the volumes used by this UCP manager node, and prints it. You can then use the 'restore' command to restore the data from an existing backup.

To create backups of a multi-node swarm, you should create backups for all manager nodes, one at a time in a quick succession, and keep track of the exact time and sequence when you performed each backup. You will need this sequence information if you restore more than one manager node at a time.

Note:

  • During the backup, UCP is temporarily stopped. This does not affect your applications.

  • The backup contains private keys and other sensitive information. Use the '--passphrase' flag to encrypt the backup with PGP-compatible encryption.

Options

Option Description
--debug, D Enable debug mode
--jsonlog Produce json formatted output for easier parsing
--interactive, i Run in interactive mode and prompt for configuration values
--id The ID of the UCP instance to backup
--passphrase Encrypt the tar file with a passphrase