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)
just_another_person
in reply to Cornflake • • •mutual_ayed
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
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…
catloaf
in reply to Cornflake • • •github.com/linuxmint/timeshift
For btrfs snapshots, storage on other disks is not supported.
GitHub - linuxmint/timeshift: System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is runni
GitHubCornflake
in reply to catloaf • • •HelloRoot
in reply to Cornflake • • •borgmatic
sadly it has no gui
AtariDump
in reply to Cornflake • • •~~Borg~~
Edit: wrote this when I thought you wanted to back up data.
Nanook
in reply to Cornflake • •