On 12/21/20 7:14 PM, Remi Gauvin wrote:
On 2020-12-21 12:37 p.m., Roman Mamedov wrote:
As such there's no benefit in storing snapshots "inside" a subvolume. There's
not much of the "inside". Might as well just create a regular directory for
that -- and with less potential for confusion.
Maybe I was complicating things for a baby step primer,, but there *are*
very good benefits to putting snapshots in a subvolume. That subvolume
can be moved into other subvolumes, A directory that contains ro
snapshots can not.
A subvolume can be moved everywhere with a simple 'mv' command.
$ btrfs sub crea sub1
Create subvolume './sub1'
$ btrfs sub crea sub2
Create subvolume './sub2'
$ btrfs sub crea sub1/sub11
Create subvolume 'sub1/sub11'
$ btrfs sub crea sub1/sub12
Create subvolume 'sub1/sub12'
$ mv sub1 sub2/
$ find sub2/
sub2/
sub2/sub1
sub2/sub1/sub12
sub2/sub1/sub11
This will not matter if your only subvolume is the filesystem root, but
if things were later be subdivided into other subvolumes, it will make
things much quicker and easier to be able to move the .my_snapshots
subvolume.
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5