Deja-dup is an excellent backup program – however it does not have integration with KDEs filemanager dolphin. Integration meaning that you can right click in a folder and select “restore missing files” or right click a file and select ‘Revert to previous version’
Adding “Restore missing files” to directory
Create a file the following in “~/.kde/share/kde4/services/ServiceMenus/dejadup_restore_missing.desktop”
[Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=inode/directory Actions=DejaDupRestoreMissingFiles [Desktop Action DejaDupRestoreMissingFiles] Name=Restore missing files in folder Name[da]=Genskab manglende filer i mappen Icon=edit-find Exec=deja-dup --restore-missing "%U"
Adding “Revert to previous version”
Create a file the following in “~/.kde/share/kde4/services/ServiceMenus/dejadup_revert.desktop”
[Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=application/octet-stream Actions=DejaDupRestoreFile [Desktop Action DejaDupRestoreFile] Name=Revert to previous version... Name[da]=Tilbagevend til tidligere version... Exec=deja-dup --restore "%U"
The above integrates deja-dup just for your user. Adding it to the following path will make it available to all users of your computer.
/usr/share/kde4/services/ServiceMenus
More documentation of the KDE servicemenus can be found here: http://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus
I agree this should be added to dolphin when deja-dup is installed. I appreciate the instructions above but this is almost a given for dolphin. Or either come up with the same functionality
Actually I asked the deja-dup authors to include it, but they focus on gnome and if it should be included it would need to be aware of whether the folder is a part of a deja-dup backup path.
https://answers.launchpad.net/deja-dup/+question/192627
Well maybe you could set it up as something that can be downloaded through the Dolphin Configure Services. I think this is a great idea. I was looking for something like this as I just switch back from Unity to Kubuntu and really needed something like this. Thanks…
Thanks for documenting this, Pascal. I had no idea it would be so simple. 🙂
In terms of making sure the path is part of the backup, I think a simple Python script would be possible, now that Dolphin can be extended using Python.
Pingback: Deja-Dup in KDE | cyb3rkn19ht
posted by ausrpned on the about page( or perhaps I moved the comment… but here it is)
Hi
The restore missing file(s) integration seems to work OK however the revert integration doesn’t appear in the actions menu within Dolphin.
Noticed when I copied and pasted restore into gedit it showed:
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory
Actions=DejaDupRestoreMissingFiles
[Desktop Action DejaDupRestoreMissingFiles]
Name=Restore missing files in folder
Name[da]=Genskab manglende filer i mappen
Icon=edit-find
Exec=deja-dup –restore-missing “%U”
Whereas the revert showed:
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/octet-stream
Actions=DejaDupRestoreFile[Desktop Action DejaDupRestoreFile]
Name=Revert to previous version…
Name[da]=Tilbagevend til tidligere version…
Exec=deja-dup –restore “%U”
I changed it to show:
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/octet-stream
Actions=DejaDupRestoreFile
[Desktop Action DejaDupRestoreFile]
Name=Revert to previous version…
Name[da]=Tilbagevend til tidligere version…
Exec=deja-dup –restore “%U”
but it made no difference.
Any thoughts? I’m running Ubuntu 12.04 for this.
Cheers
You are right about an error in the revert file. I fixed it in the post.
I’m running Kubuntu 13.04 with KDE 4.11 Beta2 (4.10.90) and it works fine.
I’m quite sure that it works in 12.04. Try removing the file and creating it again. Remember to close all dolphin between test.
Hi
Tried your suggestion but no joy. Do notice that your dejadup-action.png image above only shows the Restore missing files option.
By the way. How did you get the screen shot?
I tried to use PrtSc both by the keyboard button as well as the shortcut key strokes but the Screenshot did not accept the commands.
Will keep an eye on your site to keep up with developments.
Cheers
Hi ausrpned
I took the screenshot with ksnapshot and used the snapshot delay.
I’m not really developing on it. I just got it working and thought I should document it on the interwebz.
You only get the “Revert” option if you right click on an existing file. not if you click in the folder.