timeshift icon indicating copy to clipboard operation
timeshift copied to clipboard

Unable to change snapshot location

Open vycoder opened this issue 3 years ago • 1 comments

I installed timeshift, it set it up first on the default partition, it won't let me set it up on my external drive because it has no subvolume yet. I created a btrfs subvolume, went back to Timeshift UI settings to change it.

But then I realized all my schedules are not showing up on the UI. Only the ones I manually created. I went back to timeshift ui, change the location back to my default system partition, and all the snapshots are generated there.

I tried setting it up via terminal using: sudo timeshift --snapshot-device /dev/sda1

App config loaded: /etc/timeshift/timeshift.json

/dev/sda1 is mounted at: /run/timeshift/backup, options: rw,relatime,ssd,space_cache,subvolid=5,subvol=/

App config saved: /etc/timeshift/timeshift.json

When I do: sudo timeshift --list

/dev/sda1 is mounted at: /run/timeshift/backup, options: rw,relatime,ssd,space_cache,subvolid=5,subvol=/

Device : /dev/sda1
UUID   : 00c902a1-3f74-48f6-bc88-a1f4a2141d0c
Path   : /run/timeshift/backup
Mode   : BTRFS
Status : OK

Everything looks good so far, until I generate a new snapshot: sudo timeshift --create

Using system disk as snapshot device for creating snapshots in BTRFS mode
Mounted '/dev/nvme0n1p2' at '/run/timeshift/backup'
Creating new backup...(BTRFS)
Saving to device: /dev/nvme0n1p2, mounted at path: /run/timeshift/backup
Created directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-11-10_08-50-33
Created subvolume snapshot: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-11-10_08-50-33/@
Created control file: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-11-10_08-50-33/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2021-11-10_08-50-33': ondemand
------------------------------------------------------------------------------

Checking the UI again will show the newly created snapshot only when I change the settings back to point to the default system partition. I disabled it for now until I figure it out.

Anyone also encountered the same issue?

System:

  • Linux Distribution Name and Version: Linux 5.14.10-arch1-1 x86_64
  • Desktop Plasma 5.22.5
  • Application Version e.g. v21.09.1

vycoder avatar Nov 10 '21 00:11 vycoder

With btrfs mode, timeshift use the snapshot capability of the btrfs file system so it will always be on the same drive. If you want the snapshot to be saved in another drive, you need to use the rsync mode.

The best combo on btrfs is:

  • timeshift for the system
  • back in time (rsync) for /home

simone-viozzi avatar May 06 '22 13:05 simone-viozzi