OpenMediaVault – Btrfs is a modern copy on write (CoW) filesystem and Snapper is a tool that helps managing snapshots of Btrfs subvolume

root@OpenMediaVault:~# apt-get update -y
root@OpenMediaVault:~# apt-get full-upgrade -y
root@OpenMediaVault:~# apt-get install snapper
root@OpenMediaVault:~# snapper -c USBStick1 create-config /srv/dev-disk-by-label-USBStick1
root@OpenMediaVault:~# snapper -c USBStick2 create-config /srv/dev-disk-by-label-USBStick2
root@OpenMediaVault:~# snapper list-configs
Config | Subvolume
———-+———————————
USBStick1 | /srv/dev-disk-by-label-USBStick1
USBStick2 | /srv/dev-disk-by-label-USBStick2
root@OpenMediaVault:~#
root@OpenMediaVault:~# btrfs subvolume list /srv/dev-disk-by-label-USBStick1
ID 257 gen 22 top level 5 path .snapshots
ID 258 gen 10 top level 257 path .snapshots/1/snapshot
ID 259 gen 13 top level 257 path .snapshots/2/snapshot
ID 260 gen 19 top level 257 path .snapshots/3/snapshot
root@OpenMediaVault:~#
root@OpenMediaVault:~# snapper -c USBStick1 list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
—+——–+——-+————————–+——+———-+————-+———
0 | single | | | root | | current |
1 | single | | Sun Nov 22 16:56:33 2020 | root | | |
2 | single | | Sun Nov 22 17:00:01 2020 | root | timeline | timeline |
3 | single | | Sun Nov 22 17:18:48 2020 | root | | |
root@OpenMediaVault:~#

Leave a Reply

You must be logged in to post a comment.