How do I Screenshot Btrfs?
You can use the “cp –reflink” command to take a snapshot of a file. With this option, the file system does not create a new link pointing to an existing inode, but instead creates a new inode that shares the same disk blocks as the original copy.
How do I restore timeshift snapshot?
Restoring from Snapshot using Timeshift: Now you want to go back to the state before installing this web server. Just insert your USB storage device and open Timeshift app. Now select the snapshot you want to go back to and click on Restore. Click on Next.
How to recover BtrFS snapshots from an external drive?
How to recover btrfs snapshots from an external drive. You can use the cp command even if the snapshot resides on an external drive. For instance: You can restore an entire snapshot as well. In this case, since you will use the send and receive commands, you must use sudo.
Is there a way to recover files from snapshots?
You can recover it from the most recent snapshot, or recover an older version of the file from an older snapshot. Do you remember that a snapshot appears like a regular directory? You can simply use the cp command to restore the deleted file: What if you delete the entire $HOME/Documents/myproject directory (actually, the subvolume)?
How can I restore the subvolume from a snapshot?
You can recreate the subvolume as seen before, and again, you can simply use the cp command to restore the entire content from the snapshot: Or you could restore the subvolume by using the btrfs snapshot command (yes, a snapshot of a snapshot): You can use the cp command even if the snapshot resides on an external drive.
Is the Btrfs subvolume the same as a snapshot?
As you have seen, a Btrfs subvolume, as well as a snapshot, looks like a normal directory. Why not use a Btrfs subvolume for your project, in order to take advantage of snapshots?