* Moving snapshots
@ 2015-01-23 10:05 Matthias Urlichs
2015-01-23 19:20 ` Noah Massey
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Urlichs @ 2015-01-23 10:05 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
Hello,
how do I move a (read-only) snapshot?
Simply creating another read-only snap from the first one and then deleting
the source works, except that it destroy's the snapshot's identity -- which
means that it can't be used as a parent for "btrfs receive" any more. :-(
--
-- Matthias Urlichs
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Moving snapshots
2015-01-23 10:05 Moving snapshots Matthias Urlichs
@ 2015-01-23 19:20 ` Noah Massey
0 siblings, 0 replies; 2+ messages in thread
From: Noah Massey @ 2015-01-23 19:20 UTC (permalink / raw)
To: Matthias Urlichs; +Cc: linux-btrfs
On Fri, Jan 23, 2015 at 5:05 AM, Matthias Urlichs <matthias@urlichs.de> wrote:
> Hello,
>
> how do I move a (read-only) snapshot?
>
If you want to move a read-only snapshot to a different directory,
'..' changes, and therefore is not a read-only operation.
> Simply creating another read-only snap from the first one and then deleting
> the source works, except that it destroy's the snapshot's identity -- which
> means that it can't be used as a parent for "btrfs receive" any more. :-(
# btrfs property set -ts /path/to/snapshot ro false
# mv /path/to/snapshot /new/path
# btrfs property set -ts /new/path ro true
worked for me
>
> --
> -- Matthias Urlichs
--
Noah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-23 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 10:05 Moving snapshots Matthias Urlichs
2015-01-23 19:20 ` Noah Massey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).