How to Backup and Restore Files using Deja Dup in Linux

Deja Dup is a simple and powerful backup tool for Linux operating systems. It provides an easy way to backup and restores data from the graphical interface. It uses duplicity to compress and encrypt the backup data using a password. By default, Deja Dup makes a full backup every three months and delete old backups after a particular period of time. It allows you to save the backup on the local directory as well as remote directory including, Google Drive, NFS, SSH, and Samba.

In this tutorial, I will show you how to install the Deja Dup backup tool on Debian, Ubuntu, and CentOS Linux.

Prerequisites

  • A system running Linux desktop.
  • A root password is configured on the server.

Install Deja Dup

By default, Deja Dup is included in the default repository of all major operating systems.

For Ubuntu and Debian operating systems, run the following command to install Deja Dup:

apt-get install deja-dup -y

For RHEL, CentOS, and Fedora operating systems, run the following command to install Deja Dup:

dnf install deja-dup -y

Backup Files with Deja Dup

In this section, we will show you how to backup files with Deja Dup.

To launch the Deja Dup, search for backups in the Application menu as shown below:

Backups

Click on the Backups. You should see the Deja Dup interface:

DejaDup

Next, click on the Storage location to set the backup location as shown below:

Backup Storage location

Provide your backup location and click on the Folder to ignore to define the folder that you want to exclude from the backup as shown below:

Folders to Ignore

Next, click on the Folder to save button to define the folder that you want to backup.

Folders to be backed up

Click on the + icon and add the folder that you want to backup as shown below:

Add folder to backup

Now, click on the Overview button and click on the Backup Now button to start your first backup:

Backup overview

Set password for Backup

Provide the password to protect your backup and click on the Continue button to start the backup. The backup time may vary depending upon the size of the data.

Schedule backup with Deja Dup

Deja Dup comes with a built-in program called "deja-dup-monitor" to schedule regular backups at specific intervals of time.

To enable the automatic backup, click on the Scheduling button and enable the automatic backup as shown below:

Schedule backup

Deja Dup only allows Daily and Weekly scheduling options.

Restore Files with Deja Dup

In this section, we will show you how to restore files with Deja Dup.

With Deja Dup, you can restore from any particular backup at any time.

To restore the backup, open the Deja Dup utility as shown below:

Restore backup

Now, click on the Restore button. You should see the following screen:

Restore from

Select your backup location and click on the Forward button. You should see the following screen:

Restore from date

Select the date of your backup that you want to restore and click on the Forward button.

Restore backup to

Select the location on which you want to restore the backup then click on the Forward button.

File restore summary

Confirm your restore summary and click on the Restore button. You will be asked to provide your backup password:

Enter backup password

Provide your password and click on the Continue button. Once the backup has been restored successfully. You should see the following screen:

Files restores successfully

Conclusion

In the above guide, you learned how to install Deja Dup and Linux and use it to backup and restore files. I hope this tool will help you to save a lot of time.

Share this page:

1 Comment(s)