Backup my Terminal/Konsole settings

Hi and sorry, it’s not really a kde topic,.

So ‘m running KDE, most with Konsole and setup my shell with zsh, oh-my-zsh and some plugins, also for vim.

I do take snapshots with timeshift an sync everything to a backupstorage.

But these settings, i want to save in an other way to, but how do i do that, to that a restoring results in a working shell and editor with vim?

Are there any hints for me?

Hi @simpsonetti,

I think the settings for Konsole is located in ~/.config/konsolerc.

Move it to, say, a .backup file:

mv ~/.config/konsolerc ~/.config/konsolerc.backup

…restart Konsole, and check if everything you want to backup has disapeared. If so, you now know which file to backup.

To restore the file after testing, just rename it and remove the .backup extension:

mv ~/.config/konsolerc.backup ~/.config/konsolerc

Don’t forget to restart Konsole afterwards.

There’s a little more to it than just that. :wink:

~/.config/konsole.notifyrc
~/.config/konsolerc
~/.config/konsolesshconfig
~/.local/share/konsole/Linux.colorscheme
~/.local/share/konsole/bookmarks.xml
~/.local/share/konsole/bookmarks.xml.tbcache
~/.local/share/kxmlgui5/konsole
~/.local/share/kxmlgui5/konsole/konsoleui.rc
~/.local/share/kxmlgui5/konsole/sessionui.rc
~/.local/state/konsolestaterc

:wink:

2 Likes

Erm…OK, yeah…

Better/easier to just backup ~/.{config,local} then, which has the added benefit of backing up all/most other settings/customisations as well…

3 Likes

That would be my recommendation as well. :wink:


Edit: Better also back up the following files, if present…:

.zshrc
.zprofile
.zhistory
.vim
3 Likes

As I recall, backintime allows you to configure custom directories to backup. Whether it will suit your use case, only you can know, but it might be worth looking at:

Regards.

You could add these lines to a custom theme backup tool like konsave:


  app_layouts:
    location: "$HOME/.local/share/kxmlgui5"
    entries:
      - dolphin
      - konsole

You can edit, remove, add items as you think fit.

    # You can add more files to export like this
    # name:
    #     location: "path/to/parent/directory"
    #     entries:
    #         - file1
    #         - file2
    #         - folder1
    #         - folder2

Then in your terminal, apply, create, export - whatever you like:

> konsave -l

Konsave profiles:
ID      NAME
1       Purp-Mang
2       Purp-Mang-Slot
3       back-pinkish
4       cream
5       dim
6       dim-panther
7       dim-slot
3 Likes