Re: Moving snapshots

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 23, 2015 at 5:05 AM, Matthias Urlichs <matthias@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux