How to backup files on Ubuntu

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to backup your files on Ubuntu 22.04

Nowadays there are a lot of apps, and solutions that you can use to backup your files on your system. However, in this tutorial, we are going to use a tool called Deja Dup.

This tool allows you to create a backup of your system easily. Deja dup does not only backup your files, it also allows you to encrypt the backup, all you have to do is use the encryption option.

Encrypting backup is useful and necessary when you are planning to use a third party service to store your backup.

Deja dup allows you also to choose where you want to save your backup, meaning you can keep a copy of your backup on your local directory if you don't want to upload your backup to a cloud service.

Install Deja dup on Ubuntu 22.04

Dejap dup can be easily installed on Ubuntu 22.04 by using snap. Snap is already installed on Ubuntu 22.04 by default, so you don't need to install it.

To install Deja dup, run the command below

sudo snap install deja-dup --classic

Backup your files with Deja Dup on Ubuntu

To backup files with Deja dup, first launch Deja dup. Deja dup icon will appear on the Applications menu of your Ubuntu machine once you install it.

However, you can launch deja-dup from your terminal too.

So to launch Deja Dup, you can do so by using terminal via the command below


Once Deja Dup is launched, you will see the welcome window as shown in the image below.

Now to backup your files, first click to "Create your first Backup"

Next, you need to select folders that you want to backup, and folders that you don't want to backup. To do this, simply click on each option and select your folders, once you are done proceed to the next step by clicking "Forward"

Now, you need to choose where you want to save your backup. Simply click to "Location" and select the directory or the service that you want to use to store your backup.

You can choose to save your backup on your machine on a directory, or upload your backup on a third party file hosting service such as : Google Drive

You can also set a name for your backup

Click "Forward" when done

Next, you will be asked whether you want or not to encrypt your backup. To encrypt your backup, check the "Password-protect your backup" option and proceed to enter a password for your backup.

Then click to "Forward"

And the backup process will begin. The backup folder will be created on the directory that you choose.

How to restore your backup

To restore files with Deja dup is easy. Go to "Restore" tab, and select the file that you want to restore and click "Restore"

Next, select the path where you want to restore file(s), you can choose to restore files on the original directory or a custom directory.

Click "Restore" button to restore your files

If the backup that you are restoring is password protected, then you will need to enter the password in order to restore files

Deja dup will notify you once your files have been restored.

If you have multiple backups created on your machine, and you want to restore a file that you backed up a week ago, make sure to select the right date before restoring files.

How to backup files Automatically

Deja dup can also backup your files automatically every 2 days. To use this feature, first you must turn it on.

To do so, simply check the "Backup Automatically" option

When you turn on this feature for the first time, you will be asked to authenticate so that Deja dup has the permission to run in background.


In this tutorial, you learned how to back up and restore your files on Ubuntu with Deja Dup.

Deja dup is not the only solution when it comes to creating backups on Linux, but it's definitely one of the easiest way of doing so.