KDE Migrant allows you to migrate your existing KDE configuration to a new computer. Good when changing computers or cloning one user configuration for other users.
A single file browser and command-line script that allows you to backup your full or partial KDE configuration including apps, dotfiles and any customizations. It works for KDE Plasma widgets as well.
It creates a ZIP file that you can transfer to a different computer to unzip it.
Run from command line:
php migrant.php scan
or run scan
as a different user:
sudo -u [user] php migrant.php scan
- Open
migrant.php
in your browser (e.g.: http://localhost/kde-migrant/migrant.php) - Select configuration folders and files to back up (or select whole categories such as KDE, Plasma, Flatpaks, Snaps)
- Confirm to create backup configuration
Note: Files or folders larger than 100 KB will have filesize information on red background shown next to them.
Dry run to simulate backup based on existing configuration:
php migrant.php dryrun
Run backup based on existing configuration:
php migrant.php backup
or run backup
as a different user:
sudo -u [user] php migrant.php backup
migrant.zip file will be created.
And extract it there.
Please note that KDE Migrant 🧳 creates a ZIP file with full paths (e.g. /home/user/*). When cloning single user's config files for multiple users, extract and change paths as needed.
Is it possible to add different folders to back up (e.g. not located in user home directory)?
Yes, edit migrant.php
and edit these constants: FOLDERS_SCAN
and FILES_SCAN
. Add paths to scan. Note that user has to have read access to them in order to back them up.
How can I change matching pattern for one-click group such as
KDE
checkbox on top?
Edit KDE_MATCH
constant and add your pattern separated by |
pipe character. E.g. add |user
to include all folders+files containing user
in their name.