How-To Geek

How to Back Up Ubuntu the Easy Way with Déjà Dup

Screenshot at 2012-03-16 13_21_29

Déjà Dup is a simple — yet powerful — backup tool included with Ubuntu. It offers the power of rsync with incremental backups, encryption, scheduling, and support for remote services.

With Déjà Dup, you can quickly revert files to previous versions or restore missing files from a file manager window. It’s a graphical frontend to Duplicity, which itself uses rsync. It offers the power of rsync with a simple interface.

Getting Started

Déjà Dup is located in the System Settings window, which you can access from the gear-shaped menu on the panel.


You’ll find it named “Backup” in the System group of icons.

Screenshot at 2012-03-16 12_15_14

You can also launch it by searching for “Backup” from the Dash.

Screenshot at 2012-03-16 12_14_40


Déjà Dup’s main screen summarizes your backup settings. By default, Déjà Dup backs up your Home directory, ignoring the Trash and Downloads folders. It puts the backup in your Ubuntu One account. If you want to enable automatic backups, don’t do it yet – customize your backup settings first.

Screenshot at 2012-03-16 12_15_30

From the Storage pane, you can customize where Déjà Dup puts your backups. If you back up to Ubuntu One (and have set up Ubuntu One on your computer) your backup will be accessible from any computer, so you can easily restore your personal data on any Linux system. You can also back up to other types of remote servers, including FTP, SSH, WebDAV, and Windows shared folders. Déjà Dup’s encryption protects your data with a password you provide.

The local folder option can back up your data to an external drive or other local storage device. Putting the backup on the same drive as the original files is a bad idea — you’ll lose both the backup and the originals if the drive fails.


From the Folders pane, you can easily change the folders Déjà Dup backs up. Store important files in the Downloads folder? Remove it from the “Folders to ignore” list. Don’t want to back up your entire Home folder? Delete the Home folder from the “Folders to back up” list and add the folders you care about.

Screenshot at 2012-03-16 12_19_46

From the Schedule pane, you can set Déjà Dup to automatically back up daily, weekly, biweekly, or monthly. You can also tell Déjà Dup how long to keep old backups – anywhere from “at least a week” to “at least a year” or “forever.” Déjà Dup will automatically delete old backups when it needs space.

Screenshot at 2012-03-16 12_20_30

Performing a Backup

Once you’ve got Déjà Dup set up, you can perform your first back up by clicking the “Back Up Now” button on the Overview pane.  If you want to enable automatic backups, you can just enable the automatic backups slider — Déjà Dup will start your first backup as soon as you enable automatic backups.

Screenshot at 2012-03-16 12_20_59

The backup process may take some time, but each subsequent backup will be faster. Déjà Dup performs incremental backups, which means that it only records the changes from the last backup. That’s the power of rsync in action.

Screenshot at 2012-03-16 12_28_06

You’ll be prompted to password-protect your backup. The password you use here will encrypt your data so no one else can view it. This is particularly important if you’re storing your backup online. You may want to write your password down – you can’t recover it if you forget it.

Screenshot at 2012-03-16 12_21_33

Restoring a Full Backup

Click the Restore button in the Déjà Dup window to start restoring a backup. Déjà Dup will automatically select the folder that you last backed up to, but you can select any other folder that contains a backup.

Screenshot at 2012-03-16 12_30_18

Next, select the date the backup was taken.

Screenshot at 2012-03-16 12_30_29

Déjà Dup restores files to their original locations by default. You can also have it restore files to a specific folder if you don’t want to overwrite the existing files.

Screenshot at 2012-03-16 12_30_38

If you specified a password while creating the backup, you’ll have to enter it to restore files.

Screenshot at 2012-03-16 12_31_02

Restoring Individual Files

You can also restore individual files from a backup. From a Nautilus file manager window, select a file, click the Edit menu and select “Revert to Previous Version.”


You’ll go through the same restore process, but only your selected file will be restored to its previous state.

Screenshot at 2012-03-16 12_34_14

You can also restore files that have been deleted by clicking the File menu and selecting “Restore Missing Files.”


Déjà Dup will scan your back ups for files that were in the current folder, but aren’t anymore. You can restore them with just a few clicks.

Screenshot at 2012-03-16 12_35_57

Backups are essential – every computer user should do them. Déjà Dup finally makes this easy out of the box on Ubuntu.

Déjà Dup is included with Ubuntu 11.10 and later versions. If you’re using another Linux distribution, you’ll probably find Déjà Dup in your Linux distribution’s package repositories.

Chris Hoffman is a technology writer and all-around computer geek. He's as at home using the Linux terminal as he is digging into the Windows registry. Connect with him on Google+.

  • Published 03/19/12

Comments (8)

  1. TheFu

    Dej Dup rocks. Sister programs to this tool, also FLOSS, are:
    * Duplicity (CLI)
    * Duplicati (cross-platform)

    Another backup tool that rocks is rdiff-backup. It has command options very similar to rsync, but provides much more capability from a backup perspective than rsync does. For incremental, space and network optimized backups on secure backup storage, rdiff-backup is a fantastic tool that doesn’t need full POSIX support on the target file system to handle incremental backups. Rdiff-backup fails to store backups encrypted, so if this is needed and you want to use the tools, an extra step will be necessary. System backups require just a few minutes to complete with rdiff-backup after the first “full” backup is made. The last backup is appears as a mirror, so recovering a few files is trivial – just cp them back. This last reason alone has been enough for me to not migrate to DejDup or Duplicity or Duplicati, but that shouldn’t take away from how great any of those tools are.

    Very nice set of articles today, Chris. Nicely done.

  2. cam2644

    Thanks for this. Will be using it when I download the latest Ubuntu next month

  3. George Dvorak

    I use BackInTime.

    DejaDup has a very difficult interface to files. For instance it will not let me select the root directory which I use with backintime. Just yesterday I used the backup to restore Foxpro 10 after trying Foxpro 11.

    A good article would be a comparison between DejaDup and BackInTime.

  4. George Dvorak

    Hey, what’s with the time on these comments? I submitted my previous comment at 1:08 pm PDT and it is marked with Eastern time. I thought that these things displayed local time!

  5. Sabrina

    Good to know about the How to Back Up Ubuntu the Easy Way with Déjà Dup.

  6. Chris Hoffman


    Thanks, glad you enjoyed them!

    @George Dvorak

    I’ll take a look at BackinTime; thanks for the post idea!

    And I’m not sure. I think it’s always in Eastern time? I don’t pay attention, though.

  7. Tommy Pollák

    How about readprotected files in Dèjá Dup? I use Ubuntu 12.04 Backup and want to back up Mediawiki and MySQL files. These belong to root. So backup can not read them. Hence they will not be backed up. Is the solution to log in as root and set up Backup for root?


  8. Chris Hoffman

    @Tommy Pollák

    Well, theoretically you can launch it as root — hit alt-f2, type “gksu deja-dup” and hit enter.

    That said, I’m not sure if Deja Dup is designed for root use, so I don’t know how well this will work. You may want to use a different solution that is.

More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!