User Tools

  • (equal to forum credentials)

Site Tools


snapshots

This is an old revision of the document!


BTRFS Snapshots

The primary reason for XBian moving to the btrfs filesystem is its automated system for taking snapshots both whenever major system changes are made (such as upgrading the system) and on a scheduled basis. XBian automatically takes a snapshot when apt-get upgrade is run (either from xbian-config or from the console) and takes daily and weekly snapshots as well.

Restoring a snapshot

Restoring a previous snapshot is a simple as running (taken from THIS post)

sudo -i
btrfs-auto-snapshot list root

which will give you a list of all available snaphots similar to below

root/@btrfs-auto-snap_apt-run-2014-03-06-1546
root/@btrfs-auto-snap_apt-run-2014-03-09-1420
root/@btrfs-auto-snap_apt-run-2014-03-26-2247
root/@btrfs-auto-snap_daily-2014-03-21-1907
root/@btrfs-auto-snap_daily-2014-03-22-0909
root/@btrfs-auto-snap_daily-2014-03-27-0109
root/@btrfs-auto-snap_weekly-2014-03-22-0911
root/@btrfs-auto-snap_weekly-2014-03-30-0306

You can then restore the snapshot of your choice by running

sudo -i
btrfs-auto-snapshot rollback root/@btrfs-auto-apt_daily-2013-12-11-0758
reboot

snapshots.1401396597.txt.gz · Last modified: 2014/05/29 22:52 (external edit)