Re: Promote Snapshot to Subvolume? (again)

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

 



Sorry to come up with an old thread, but I'm really interested if something is going on with that idea. It would help in many situations if you could "promote" snapshots to "regular" subvolumes.

Let's for example take btrfs-restore: It does not restore snapshots by default, which is rather smart, because a snapshot should merely be a somewhat older version of an existing subvolume. But let's assume in some point in the past, you really messed up your /home and you used a snapshot to recreate it, like deleting the dirty /home subvolume and snapshotting the latest backup to a writeable /home again. Then, whatever the reason be, you see yourself confronted with using the btrfs-restore tool. Now per default you cannot restore /home, since it is officially a snapshot, but on the other hand, you do not want to restore all other snapshots together with /home (without fiddling with some regular expression path filter, that is).

To truly achieve the desired outcome, instead of snapshotting a backup to /home, you would have had to create a new subvolume /home and to reflink-cp all the contents from the snapshot to the new /home. I find this somehow irritating, given that snapshotting is almost instantly while cp takes quite some time on a big enough /home.

So I hereby want to push this snapshot-promoting request and would be interested in the developers' opinions!

--
Flo
--
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