Duplicity Man Page




For my own reference:

Options

–allow-source-mismatch

Do not abort on attempts to use the same archive
dir or remote backend to back up different directories. duplicity will
tell you if you need this switch.

–archive-dir path

When restoring, specify
the local archive directory. This option is not necessary, but if hash
data is found locally in path it will be checked against remote files.

–cleanup

Delete the extraneous duplicity files on the given backend. Non-duplicity
files, or files in complete data sets will not be deleted. This should
only be necessary after a duplicity session fails or is aborted prematurely.

–encrypt-key key

When backing up, encrypt to the given public key, instead
of using symmetric (traditional) encryption. Can be specified multiple
times.

–exclude shell_pattern

Exclude the file or files matched by shell_pattern.
If a directory is matched, then files under that directory will also be
matched. See the FILE SELECTION section for more information.

–exclude-device-files

Exclude all device files. This can be useful for security/permissions reasons
or if rdiff-backup is not handling device files correctly.

–exclude-filelist
filename

Excludes the files listed in filename See the FILE SELECTION

section for more information.

–exclude-filelist-stdin

Like –exclude-filelist,
but the list of files will be read from standard input. See the FILE SELECTION
section for more information.

–exclude-globbing-filelist filename

Like –exclude-filelist
but each line of the filelist will be interpreted according to the same
rules as –include and –exclude.

–exclude-other-filesystems

Exclude files on file
systems (identified by device number) other than the file system the root
of the source directory is on.

–exclude-regexp regexp

Exclude files matching
the given regexp. Unlike the –exclude option, this option does not match
files in a directory it matches. See the FILE SELECTION section for more
information.

–file-to-restore path

This option may be given in restore mode,
causing only path to be restored instead of the entire contents of the
backup archive. path should be given relative to the root of the directory
backed up.

-f, –full

Indicate full backup. If this is set, perform full backup
even if signatures are available.

–force

Proceed even if data loss might
result. Duplicity will let the user know when this option is required.

-i,
–incremental

If this is set, duplicity will abort if old signatures cannot
be found. The default is to switch to full backup under these conditions.

–include shell_pattern

Similar to –exclude but include matched files instead.
Unlike –exclude, this option will also match parent directories of matched
files (although not necessarily their contents). See the FILE SELECTION
section for more information.

–include-filelist filename

Like –exclude-filelist,
but include the listed files instead. See the FILE SELECTION section for
more information.

–include-filelist-stdin

Like –include-filelist, but read the
list of included files from standard input.

–include-globbing-filelist filename

Like –include-filelist but each line of the filelist will be interpreted
according to the same rules as –include and –exclude.

–include-regexp regexp

Include files matching the regular expression regexp. Only files explicitly
matched by regexp will be included by this option. See the FILE SELECTION
section for more information.

–list-current-files

Lists the files currently
backed up in the archive. The information will be extracted from the signature
files, not the archive data itself. Thus the whole archive does not have
to be downloaded, but on the other hand if the archive has been deleted
or corrupted, this command may not detect it.

–no-encryption

Do not use GnuPG
to encrypt files on remote system. Instead just write gzipped volumes.

–no-print-statistics

By default duplicity will print statistics about the current session after
a successful backup. This switch disables that behavior.

–null-separator

Use
nulls (\0) instead of newlines (\n) as line separators, which may help when
dealing with filenames containing newlines. This affects the expected format
of the files specified by the –{include|exclude}-filelist[-stdin] switches
as well as the format of the directory statistics file.

–scp-command command

This option only matters when using the ssh/scp backend. There command
will be used instead of scp to send or receive files. command must have
the same syntax as scp. This option can also be used to give extra arguments
to scp, for instance “–scp-command ’scp -i foo’”. The default is “scp”.

–sign-key

key


This option can be used when backing up or restoring. When backing
up, all backup files will be signed with keyid key. When restoring, duplicity
will signal an error if any remote file is not signed with the given keyid.
key should be an 8 character hex string, like AA0E73D2.

–ssh-command command

Use command instead of “ssh” to execute commands on the remote side. This
only matters when using the ssh/scp backend. See –scp-command for more information.

–remove-older-than time

Delete all backup sets older than the given time.
If old backup sets will not be deleted if backup sets newer than time depend
on them. See the TIME FORMATS section for more information.

–short-filenames


If this option is specified, the names of the files duplicity writes will
be shorter (about 30 chars) but less understandable. This may be useful
when backing up to MacOS or another OS or FS that doesn’t support long filenames.

-ttime, –restore-time time

When restoring, specify the time to restore to.

-v[0-9], –verbosity [0-9]

Specify verbosity level (0 is total silent, 3 is
the default, and 9 is noisiest).

–verify

Enter verify mode instead of restore.
If the –file-to-restore option is given, restrict verify to that file or
directory. duplicity will exit with a non-zero error level if any files
are different. On verbosity level 4 or higher, log a message for each file
that has changed.




0 Responses to “Duplicity Man Page”


  1. No Comments

Leave a Reply