]> arthur.barton.de Git - ax-linux.git/commit
Add btrfs-mksnapshot-rootfs script
authorAlexander Barton <alex@barton.de>
Fri, 25 Apr 2014 08:54:43 +0000 (10:54 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 25 Apr 2014 09:02:52 +0000 (11:02 +0200)
commitde7360f26cc958695d915b080039b61cd4acd4f2
tree10cbe7382e7fe8414d92eab5e54e6b0571fecefb
parent6ce66904a60ab1d8fb4063834ad0bfae8b7b5e20
Add btrfs-mksnapshot-rootfs script

This script is a wrapper for btrfs-mksnapshot script, which creates a
daily snapshot of the root filesystem (/) if it is of type "btrfs" and
when the btrfs-mksnapshot tool is available.

If the root filesystem is not of type "btrfs" or when btrfs-mksnapshot is
not available, it exits WITHOUT an error code, so it is safe to use this
wrapper even on systems which don't use btrfs at all (this is useful for
/etc/apt/apt.conf.d/06btrfs-mksnapshot, for example).
btrfs/mksnapshot/06btrfs-mksnapshot
btrfs/mksnapshot/Makefile
btrfs/mksnapshot/btrfs-mksnapshot-rootfs [new file with mode: 0755]