Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

What are the commands to use in btrfs in case I want to:

  1. create a (read-only) snapshot of a volume;
  2. (do some experiments in the volume);
  3. and then rollback the volume to the snapshot?
share|improve this question

2 Answers 2

btrfs sub snap -r fs snapshot
... do things on fs
btrfs sub del fs
btrfs sub snap snapshot fs
btrfs sub del snapshot
share|improve this answer

Try from the other side: create R/W snapshot, use it as new main one, do "some experiments" on old one, then just drop contents of old.

Article "BTRFS Fun" can be helpful.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.