yum-fs-snapshot btrfs howto?

Neal Becker ndbecker2 at gmail.com
Thu Jan 16 18:21:18 UTC 2014


Chris Murphy wrote:

> 
> On Jan 16, 2014, at 6:33 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> 
>> I'm using btrfs, and decided to give yum-fs-snapshot a try.
>> 
>> After installing the plugin, I see:
>> 
>> fs-snapshot: snapshotting /: /yum_20140116082704
>> fs-snapshot: snapshotting /home/: /home/yum_20140116082704
>> 
>> I have:
>> 
>> /dev/sda3 on /home type btrfs (rw,relatime,ssd,space_cache)
>> /dev/sda3 on / type btrfs (rw,relatime,ssd,space_cache)
>> 
>> I'm wondering if I should add
>> exclude=/home
>> to fs-snapshot.conf?
> 
> I snapshot boot, root, and home together. In almost any likelihood of a
> rollback in a bad system update, I'd keep the existing /home rather than
> rolling it back. But in case of a wrongly delete file or pile of emails, it's
> useful to also have /home snapshots.
> 
> Ideally we'd have snapshots of /home happening much more often, like on a
> schedule every hour or every day. Whereas with boot and root subvolumes, they
> only need snapshotting immediately prior to a system update.
> 
> 
> Chris Murphy
> 

I'm talking only about yum-fs-snapshot.  When I run yum it's never going to 
write into /home.  But I don't know exactly what this means.  Notice my /home 
and / root partition are the same physical device (which is fedora's default 
install on btrfs - or at least was when I did the original install).

So I'm guessing yum-fs-snapshot will snapshot everything - since it does 
snapshot or root.  Does additional snapshot of /home actually do anything?



More information about the users mailing list