How to backup/restore Kodi settings on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to show how to create a backup and consequently restore Kodi settings on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver

Requirements

No special privileged access is required.

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Create a Kodi Settings Backup

Kodi stores all configuration files and settings within a hidden directory located within your home directory:

$ ls ~/.kodi
addons  media  system  temp  userdata

We need to backup this directory in order to preserve Kodi’s a personalized configuration. To do so simply gzip the entire ~/.kodi directory:

$ tar czf kodi-bakup.tar.gz ~/.kodi

The above command will create a new file called kodi-bakup.tar.gz containing backup of Kodi’s settings:

$ ls kodi-bakup.tar.gz 
kodi-bakup.tar.gz


Restore from Kodi backup

Given that you have already installed Kodi on and copied your backup file on some other Linux box execute the following linux commands to restore Kodi configuration:

$ rm -fr ~/.kodi/*
$ tar xzf kodi-bakup.tar.gz -C ~/.kodi

The above commands will first remove existing Kodi configuration files followed by restoring settings files from backup file kodi-bakup.tar.gz. To take new configuration settings into effect restart your Kodi application.