Home

Got a framework. Migrated all my data over using rustic.

$$22149
https://programming.dev/u/moonpiedumplings posted on Apr 5, 2026 05:54

It was fairly easy. I used rustic to back up my entire home directory to a USB flash drive.

The trick is to ensure that all applications (except KDE) are closed. Firefox, for example, really hates if you try to actively sync or copy over it’s profile directories while it is running.

And then I also nuked my podman user data. (podman system reset). Podman sometimes makes the ownership of it’s files weird, but also the container images take up a lot of space that I don’t really care about actually backing up. It’s okay if those aren’t on the new laptop.

Then I backed up to the usb flash drive:

rustic init -r /path/to/repo — this will prompt you for a password

rustic backup -r /path/to/repo /home/moonpie

One cool thing about the backups is that they are deduplicated and compressed. So I backed up 120 gb of data, but it was compressed to 80 gb.

restic snapshots -r /path/to/repo

The snapshots are deduplicated as well. Data that doesn’t change between snapshot versions, doesn’t take up any extra space.

rustic restore -r /path/to/repo snapshotid /

The / is needed because rustic restores to paths underneath the thing. It gave me a bunch of permission errors about not being able to read stuff not in my home directory, but eventually it restored all of my data.

And then yeah. All my data. Except Wifi passwords, which I had stored as unencrypted for all users, because I didn’t like having to unlock the KDE wallet to get to Wifi passwords when connecting. I had (and have) LUKS encryption so I didn’t worry about that too much. But it means that data not in my home directory was not copied over.

It was surprisingly smooth, and now I have all my data and firefox profiles and stuff on the new machine.

https://programming.dev/post/48311444
Reply
$$22153
https://piefed.social/u/one_old_coder posted on Apr 5, 2026 06:46
In reply to: https://programming.dev/post/48311444

Stupid question but what were the source and destination Linux distributions?

https://piefed.social/comment/10831350
Reply
$$22160
https://programming.dev/u/moonpiedumplings posted on Apr 5, 2026 07:44
In reply to: https://piefed.social/comment/10831350

Not a stupid question.

Cachyos to cachyos.

This matters. Firefox will refuse to do anything with a profile directory from a newer version of firefox. So if I switched to opensuse leap, or another linux distro that has an older version of firefox, then I might encounter issues with just directly copying the profiles.

https://programming.dev/comment/23121702
Reply
$$22161
https://cyberplace.social/users/khleedril posted on Apr 5, 2026 07:44
In reply to: https://piefed.social/comment/10831350

@one_old_coder @moonpiedumplings The source distribution was #slackware the destination will be the thing which supersedes #guix ;)

https://cyberplace.social/users/khleedril/statuses/116350982336130121
Reply
$$22173
https://jlai.lu/u/Mubelotix posted on Apr 5, 2026 08:15
In reply to: https://programming.dev/post/48311444

Not sure you should use rustic over restic man, trading stability for performance isn’t a good idea when it comes to backups

https://jlai.lu/comment/20388790
Reply
$$22514
https://programming.dev/u/moonpiedumplings posted on Apr 6, 2026 02:18
In reply to: https://jlai.lu/comment/20388790

Do you have any examples of rustic having bugs that eat data? I couldn’t find any precedent when I searched, which is part of why I used rustic.

restic is in go, rustic is in rust, both are memory safe typed languages.

https://programming.dev/comment/23136041
Reply