Is it possible to backup the custom keyboard shortcuts and restore them when doing a fresh install?
Gnome-Control-Center (used by Unity and Gnome Shell) stores its key bindings in the per-user Dconf database directories
The easiest way to keep them across system re-installations is to keep the per-user configuration directories (
~/.configor more specifically
~/.config/dconf/userfor Dconf only). Most of the time it's not necessary or desirable to purge the per-user configuration files anyway.
If you can't or won't keep your old Dconf database you can use the
dconfcommand to export (“dump”) parts of it into a file and import (“load”) it later.
The following example saves the Dconf directory
/org/gnome/desktop/wm/keybindings/to a file
keybindings.dconfand then restores it from the same file:
dconf dump /org/gnome/desktop/wm/keybindings/ > keybindings.dconf dconf load /org/gnome/desktop/wm/keybindings/ < keybindings.dconf