Newbie to BTRFS- how do I use Timeshift to create backups on another SSD?


Hey there, folks! Currently playing around with a laptop that's got three SSDs. Running Arch but that isn't quite related. I have everything configured on one SSD, the other two are totally fresh. What do I need to do to setup one of those fresh SSDs for Timeshift backups? Please walk me through it from the very start- I think I understand some parts but I'm not too certain.

I can format the drives using mkfs.btrfs without any issues, but I'm confused about how I can add subvolumes and configure their root permissions properly to allow Timeshift snapshots.

EDIT: I see now that I misunderstood what Timeshift does. New question- which tool can I use to make a backup of my entire filesystem onto another drive such that it can be restored?

This entry was edited (17 hours ago)
in reply to Cornflake

Build the snapshot with the below file

```# create read-only temporary snapshot of volume
btrfs subvolume snapshot -r /path-to-sv/subvol /path-to-sv/subvol.ro

send the subvolume to file, compress with parallel ZSTD & monitor progress


btrfs send /path-to-sv/subvol.snap.ro | \
pv -c | pzstd -16 | pv -c | \
dd of=/path-to-external-backup/subvol.zstd.back

delete read-only snapshot


btrfs subvolume delete /path-to-sv/subvol.ro

<br />To restore subvolume from backup we run the process in reverse:

read backup file and decompress the stream, redirect to temporary read-only snapshot


dd if=/path-to-external-backup/subvol.zstd.back | \
pv -c | pzstd -d | pv -c | \
btrfs receive /path-to-sv/

make a RW subvolume


btrfs subvolume snapshot subvol.ro subvol

delete temporary snapshot


btrfs subvolume delete /path-to-sv/subvol.ro
```

From here

superuser.com/questions/139624…

You might want to make this into a systemd timer to run at boot or before shutting down

linuxconfig.org/how-to-schedul…

This entry was edited (16 hours ago)
in reply to Cornflake

github.com/linuxmint/timeshift

For btrfs snapshots, storage on other disks is not supported.

Timeshift is designed to protect system files and settings. It is NOT a backup tool and is not meant to protect user data.
⇧