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,529FansLike
171FollowersFollow

LATEST ARTICLES

How to create Manjaro Linux Live USB drive in Windows PC

Create Manjaro Live USB flash drive
Manjaro Linux is based on the independently developed Arch operating system.  Arch Linux is already known to be an exceptionally fast, powerful, and lightweight distribution. But Arch Linux is typically targeted to geeks who have some Linux background and command-line usage.

RECENT COMMENTS

screen capturing apps for linux
Do you want to make a video tutorial for YouTube or show-off your epic victory royale to your friends? Look no further — as we have compiled the 10 Best Screen Capturing Software for Linux. Whether you need to record your desktop screen or take a simple screenshot, FOSSLinux has got your back.
best linux distros programmers
Linux distros have long been a favorite among programmers since the rise in popularity of the OS in the nineties. Programmers are technical by nature, and Linux distros appeal to that technical nature. Let's discuss why Linux is a great desktop OS for programmers and developers, and find out best distros suitable for them.
best music players for linux
For sure, there will be Linux users out there who cannot live without music. If you're one of those people, you would know how important it is to have a good music player installed on your computer system. In this article, we present to you the 5 Best Music Players for Linux, which will hopefully be able to satisfy each of our readers' needs.
best video players for linux
Most Linux-based systems come with a built-in video player, but let's be honest, it most definitely won't be able to satisfy all of your requirements, due to the fact that default software is mostly made for basic purposes. In this article, we will review the 5 Best Video Players for Linux and thoroughly discuss their features as well as their pros and cons.
terminate frozen app
For dealing with a frozen app or desktop, you can't use the CTRL+ALT+DEL in Linux system. Instead, there are powerful alternatives that come in handy in frustrating situations. We pick the best methods available for you.