Linux Lite Forums

Software - Support => Tutorials => Topic started by: bobw on November 11, 2014, 03:32:15 PM

Title: Deja Dup - How to restore files & folders in Thunar
Post by: bobw on November 11, 2014, 03:32:15 PM
I've been trying Deja Dup for user file backups.  It's very good, but the restore facility is limited in LL.  You can restore a whole snapshot of your files, but you can't restore previous versions of individual files or folders (and their contents).  It appears to be designed to be used in association with Nautilus file manager, rather than LL's usual Thunar.  In Nautilus, you can right-click on a file to get an option to restore the version from any previous Deja Dup backup.

After some research, I've found that the solution is to set up a custom action in Thunar:
1. Select Edit and Configure custom actions ...
2. Click on the + button to create a new custom action.
3. Complete the text boxes:
     Name:  Restore previous version
     Description:  Restores earlier file versions via Deja Dup
     Command:  deja-dup --restore %F
4. Select an icon if you want one.
5. Click on Appearance Conditions tab and check all 6 boxes.
6. Click on OK.

You will need to log out and log in again for the change to take effect.

You will now be able to right-click on a file or folder in Thunar to restore earlier versions.  If you don't want to be able to restore whole folders (use with care!), don't check the directories box in the Appearance Conditions tab.
Title: Re: Deja Dup - How to restore files & folders in Thunar
Post by: Wirezfree on November 11, 2014, 05:42:17 PM
I've been trying Deja Dup for user file backups.  It's very good, but the restore facility is limited in LL.  You can restore a whole snapshot of your files, but you can't restore previous versions of individual files or folders (and their contents).  It appears to be designed to be used in association with Nautilus file manager, rather than LL's usual Thunar.  In Nautilus, you can right-click on a file to get an option to restore the version from any previous Deja Dup backup.

After some research, I've found that the solution is to set up a custom action in Thunar:
1. Select Edit and Configure custom actions ...
2. Click on the + button to create a new custom action.
3. Complete the text boxes:
     Name:  Restore previous version
     Description:  Restores earlier file versions via Deja Dup
     Command:  deja-dup --restore %F
4. Select an icon if you want one.
5. Click on Appearance Conditions tab and check all 6 boxes.
6. Click on OK.

You will need to log out and log in again for the change to take effect.

You will now be able to right-click on a file or folder in Thunar to restore earlier versions.  If you don't want to be able to restore whole folders (use with care!), don't check the directories box in the Appearance Conditions tab.

Hi bobw,

Good find/work
"Thanks" clicked

Dave
Title: Re: Deja Dup - How to restore files & folders in Thunar
Post by: Jerry on November 12, 2014, 04:45:14 AM
Thanks bobw, will look into this.
Title: Re: Deja Dup - How to restore files & folders in Thunar
Post by: gold_finger on November 13, 2014, 05:13:53 PM
bobw,

Nice post.  Sure it will come in very handy.  Thanks.
Title: Re: Deja Dup - How to restore files & folders in Thunar
Post by: Curtis34 on January 17, 2015, 06:00:44 AM
I never use this backup software. It looks good software but from last 3 months I am Using CloudBacko Lite (http://www.cloudbacko.com/). It is a fully automated backup solution aimed at professionals with many built-in features that save time and money, such as deduplication, and multiple disaster recovery options. I also recommend you to check this software.

EDITED BY GOLD_FINGER:

I've seen several posts like this on both LL forum and Linux Mint forums.  All similarly worded and all posted by newly registered people with one and only one post -- this nonsense.

SPAM!!!!!
Title: Re: Deja Dup - How to restore files & folders in Thunar
Post by: Scott on January 17, 2015, 09:36:45 AM
@Gold_Finger -

Nice catch on the spam message!
Title: Re: Deja Dup - How to restore files & folders in Thunar
Post by: jack action on November 29, 2018, 09:08:03 PM
I searched a long time for a solution like this and found it on my own.  I wanted to share it with the community, but it is already done!

Still I have a twist for my solution, so here it goes:

Restore File(s)

So this one is as explained in the OP, except I did not checked the Directories option (you rarely want to restore the entire content of a folder):

(https://i.imgur.com/p4wQRqb.png)    (https://i.imgur.com/rM8ez9k.png)

Restore Missing Files

In addition, I configured another custom action for directories.  With this one, when you select a directory, you can restore all files from your backup that were deleted within that directory:

(https://i.imgur.com/0cRjI2u.png)    (https://i.imgur.com/AiOZVo1.png)

For your information, in both cases, there is a GUI appearing, asking questions.  So it is not done automatically if you click it by accident.