s6-rc: the s6-rc-set-copy program
Keywords: s6-rc s6-rc-set-copy repo set rx copy services

s6-rc
Software
skarnet.org

# The s6-rc-set-copy program

s6-rc-set-copy makes a copy of a set under a different name, in a repository.

## Interface

         s6-rc-set-copy [ -v verbosity ] [ -r repo ] [ -f ] src dst

- s6-rc-set-copy makes an exact copy of set src and names it dst.
- It exits 0.

## Options

-v verbosity, --verbosity=verbosity
  Be more or less verbose. The default is 1, which means that error messages and warnings will be written to stderr. 0 means that only error messages will be written, and 2 or more adds informational messages.
-r repo, --repository=repo
  Use the repository in repo, which must exist. Default is /var/lib/s6-rc/repository.
-f, --force
  Overwrite set dst if it exists.

## Exit codes

0
  Success.
1
  Set dst already exists and the `-f` option has not been given.
100
  Incorrect usage.
102
  Inconsistent repository.
111
  System call failed.

## Notes

- s6-rc-set-copy can be used to create a dynamic working set, to be copied back to its source when the user is happy with the changes.