Hello everyone,
`lxc-copy` command has a weird behaviour.
I have read LXC's “Getting started” article[1], LXC's Arch Wiki documentation[2] and LXC's manpages[3].
There are issues with `lxc-copy` command and its documentation.
## Opaque documentation about snapshots
As far as I understand from the documentations, `lxc-copy` can create two types of copies: 1. Regular complete copies, 2. Snapshots.
Nevertheless, it is unclear which type of copy it performs for each type of backing storage and particularly with and without `-s`, `-e` and `-B` flags!
The manpage implicitly imply that it does the first type of copy by default unless `-s` or `-e` flags are specified, regardless of the backing storage type, and will create snapshots otherwise. Is that true?
And what is the mechanism for creating snapshots for each type of backing storage?
## Difference between `-e -D` and `-s` flags?
According to documentations, specially the manpage.
`-e` option makes `lxc-copy` to create a copy that is a _snapshot_ and is _ephemeral_. Combination of `-D` and `-e` flags make `lxc-copy` to create a copy that is a _snapshot_ but is not _ephemeral_! Which is exactly what `-s` implied to do.
## When to use `-B` flag
It's explicitly said in the manpage that:
> The copy's backing storage will be of the same type as the original container.
Is it talking about snapshot copies? Or regular copies? Can regular copy containers even be anything other than directory? And with any case, what the `-B` flag exactly does? Can you use this flag for regular copies, or they have to be used only with `-e` or `-s` options?
## Silent fails!
--
Best Regards,
Abraham
Sent with Tutanota;
https://tuta.com