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.
- 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:
Click on the Backups. You should see the Deja Dup interface:
Next, click on the Storage location to set the backup location as shown below:
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:
Next, click on the Folder to save button to define the folder that you want to backup.
Click on the + icon and add the folder that you want to backup as shown below:
Now, click on the Overview button and click on the Backup Now button to start your first 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:
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:
Now, click on the Restore button. You should see the following screen:
Select your backup location and click on the Forward button. You should see the following screen:
Select the date of your backup that you want to restore and click on the Forward button.
Select the location on which you want to restore the backup then click on the Forward button.
Confirm your restore summary and click on the Restore button. You will be asked to provide your backup password:
Provide your password and click on the Continue button. Once the backup has been restored successfully. You should see the following screen:
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.