Trying (and failing) to setup Timeshift. Hoping to have it do snapshots of an ext4 LUKS-encrypted Arch system partition.
Documentation is thin on the ground and relates heavily to the GUI so problem solving hasn't been easy.
This is what I get when I run it for the first time:
$ sudo timeshift --create --comments "initial snapshot" First run mode (config file not found) Selected default snapshot type: RSYNC Mounted '/dev/dm-0 (nvme0n1pX)' at '/run/timeshift/991/backup' ------------------------------------------------------------------- Estimating system size... Creating new snapshot...(RSYNC) Saving to device: /dev/dm-0, mounted at path: /run/timeshift/991/backup Syncing files with rsync... E: rsync returned an error E: Failed to create new snapshot Failed to create snapshot ------------------------------------------------------------------- Removing snapshots (incomplete): ------------------------------------------------------------------- Removing '2025-11-07_10-30-22'... Removed '2025-11-07_10-30-22' ------------------------------------------------------------------- E: Failed to remove directory Ret=256
I initially left timeshift.json empty except for 'backup_device', but this is how it filled it out:
{ "backup_device_uuid" : "ab13bb9a-e4d6-4884-b8c8-XXXXXXXX", "parent_device_uuid" : "904be7d0-a38d-4aed-9ee4-XXXXXXXX", "do_first_run" : "false", "btrfs_mode" : "false", "include_btrfs_home_for_backup" : "false", "include_btrfs_home_for_restore" : "false", "stop_cron_emails" : "true", "schedule_monthly" : "false", "schedule_weekly" : "false", "schedule_daily" : "false", "schedule_hourly" : "false", "schedule_boot" : "false", "count_monthly" : "2", "count_weekly" : "3", "count_daily" : "5", "count_hourly" : "6", "count_boot" : "5", "date_format" : "%Y-%m-%d %H:%M:%S", "exclude" : [ "/root/","/home/joe/" ], "exclude-apps" : [] }
I believe that unless you tell it otherwise, it will write snapshots to the same partition, which is what I want. 'parent_device' appears to be the LUKS crypto container that the root sits in.
Anyone spot the problem? Any help would be much appreciated!
Also, if I wanted to exclude a dir (inc. all subdirs & contents) at root called 'blah', would "/blah/**" be the correct exclude pattern?