backup

The Synapse backup tool can be used to create an optimized backup of a Synapse directory.

Syntax

backup is executed using python -m synapse.tools.backup. The command usage is as follows:

python -m synapse.tools.backup -h

usage: synapse.tools.backup [-h] [--skipdirs SKIPDIRS [SKIPDIRS ...]]
                            srcdir dstdir

Create an optimized backup of a Synapse directory.

positional arguments:
  srcdir                Path to the Synapse directory to backup.
  dstdir                Path to the backup target directory.

options:
  -h, --help            show this help message and exit
  --skipdirs SKIPDIRS [SKIPDIRS ...]
                        Glob patterns of relative directory names to exclude
                        from the backup.