How to Backup and Restore Files and Folders on Ubuntu

Déjà Dup is Ubuntu's built-in backup and restore utility. It is a simple backup program that uses duplicity as the backend. Let's learn how to set it up and use it.

Ubuntu comes built-in with a backup and restore utility known as “Déjà Dup.” The backup tool comes deactivated by default settings. The below tutorial will guide you on setting up the backup of files and folders to a storage location as well as explaining how to restore the data from backup when needed.

It uses duplicity as the backend. Here are its significant features.

Ubuntu Backup Tool Features

1. Storage Location

The backup storage can be set up on the following locations:

  • Local Folder: This is the same machine where the original files and folders are located.
  • Network Server: It’s a good idea to store the backup data on a secured network so that you will not lose the data in case the original computer is damaged.
  • Google Drive: If you have a Google Drive account, you can use that too for backup. Since the backup takes place over the internet, you need to have a decent upload and download speed to use this service efficiently.
  • Nextcloud: Similar to Google Drive, you can use the NextCloud service to use as a backup location. Again, you need to have a good internet connection to use this.

2. Secure Encryption

Déjà Dup tool encrypts the backup data, and therefore, even if it falls into the wrong hands, it’s not useful right away.

3. Data Compression

Apart from encrypting the data, it also uses a compression algorithm to make the data occupy less disk space at the backup location.

4. Incremental Backup

When files and folders are backed up, the tool smartly notes down the properties and only backs up the modified data instead of replacing the entire data. It saves a lot of time and bandwidth, especially if the backup location is a network location.

5. Automatic Backups

While you can anytime manually take a backup, there is an option to schedule an automatic backup and forget about it.

Setting Backup of Files and Folders

Step 1) Go to “Activities,” look for “Backup,” and launch “Backups” tool.

Step 2) The “Overview” tab shows the current status of the tool. By default, there will be no backups scheduled, nor you will see any backups taken before.

Backup Tool Overview
Backup Tool Overview

Step 3) Click “Folders to save” to add the files and folders that you want to take backup. By default, the tool will list the “Home” location. You can delete by selecting it and then clicking on the “-” button. Similarly, use the + button to add files and folders. For instance, I have added a folder “FLORIDA-ATLANTA TRIP” to the list.

Folders to be backed up
Folders to be backed up

Step 4) “Folders to ignore” tab lets you add the folders that you want to be excluded from the backup. For example, if you had “Home” taken as a backup, you may want to cancel the “Downloads” folder, which is usually filled with all kind of data and could be avoided to save disk space and bandwidth. “Trash” is another location you want to avoid.

Folders to Ignore
Folders to Ignore

Step 5) Click “Storage location” to set up the location of the backup data. As discussed above, there are a handful of backup locations including Local storage, Network, Google Drive, or NextCloud service. These options are straight-forward. Select your preferred options and proceed with on-screen instructions.

Automatic Backup

Step 6) Finally, the “Scheduling” tab is the location which you should enable to setup automatic backup.

As soon as you turn the Automatic backup” to ON position, the backup tool will prompt you to install “Duplicity.” It is a backend of the backup tool. Go ahead and click “Install” followed by root password to complete the installation.

You can select a weekly backup or a daily backup. Also, you can set how long you want to keep the backed up data. You will get choose from “Forever,” “At least a year,” or “At least six months.”

Restoring from a Backup

Now that you have enabled the backup tool, you need to wait until a backup process is complete to be able to use the restore functionality. When backups are taken, the “Restore” button in the “Overview” tab should become available.

Step 1) Click on “Restore”.

Step 2) A dialog will appear asking where your backup files are stored (your “Backup location”).

Step 3) Choose it from the dropdown or choose “Other…”.

Step 4) On this same screen, select whether you encrypted the backup or not. Click “Forward”.

Step 5) Choose the date you want to restore from. Usually, you can just leave this alone, as the default is the most recent backup. Click “Forward”.

Step 6) Choose where to restore. Click “Forward”.

Step 7) Review your selections and click “Restore”.

Wait for the process to complete.

Conclusion

Déjà Dup is a handy backup tool that comes along with Ubuntu. Its incremental backup feature works great and saves a lot of resources. The encryption and compression features are something which every backup tool should have these days. The best part of the tool is the ability to back up the data to cloud services for free.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,264FansLike
192FollowersFollow

LATEST ARTICLES

How to create a Fedora Games Live USB drive in Linux

One of the best Fedora spins that has been for a while and also being well maintained is the Fedora Games. The Fedora Games spin is a great showcase of the best games available in the Fedora operating system.
manjaro complete usb drive
In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.
Ubuntu 19.10 beta overview
It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.
PDF EDITORS LINUX
In this article, we will take a look at 10 of the best PDF editors and tools out there in 2019 that are available for Linux platforms. The editors are going to be judged on the basis of their functionalities, portability, ease of installation, price, and convenience.