Thread (5 messages) 5 messages, 2 authors, 2021-07-29

Re: reorganizing my snapshots: how to move a readonly snapshot? (btrbk)

From: Dave T <hidden>
Date: 2021-07-29 00:57:31

On Tue, Jul 27, 2021 at 1:34 PM Graham Cobb [off-list ref] wrote:

On 27/07/2021 17:47, Dave T wrote:
quoted
I'm using btrbk to create regular snapshots. I see a way I can improve
the organization of my snapshots now that I have more experience with
this tool, but it requires moving existing snapshots to a different
directory.

I would prefer to avoid re-creating the full initial snapshot in the
new location and I would prefer to avoid losing the existing
incremental snapshots. I also want to preserve the existing parent
relationships used by my snapshot tools (mainly btrbk).

I'm thinking about using the solution mentioned here:
https://unix.stackexchange.com/a/149933
quoted
To set a snapshot to read-write, you do something like this:
btrfs property set -ts /path/to/snapshot ro false
My plan would be to change the ro property to false, move the
snapshots, reset the ro property to true, and change my btrbk.conf to
match the new path.

What are the caveats in this plan?
I believe that setting snapshots read-write and then back to ro is not
recommended and is unsupported. It may work but I am sure I have seen
reports of problems with send/receive when snapshots have been made rw,
changed and then set ro again.

I recommend using the btrbk archive feature to move your existing
snapshots and then start building on top of those. I think I did exactly
this a long time ago when I was in a similar position of wanting to move
my btrbk setup.
I tried the btrbk archive feature. It doesn't fit my use case.
ERROR: Source and target subvolumes are on the same btrfs filesystem!

Any other suggestions? (I am running kernel 5.13)
Thanks
Graham
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help