how to restore files from trash to their original position?

Asked by marco.pallotta

Is there a way to restore delete files in Trash to their original position? I haven't found any command from the nautilus even if, in ~/.local/share/Trash/info, the deleted files have the original path in the corresponding info file (so I think a way should be)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Simone Cianfriglia (crimer) said :
#1

Open trash with nautilus, then right click on your file and select restore :D

Revision history for this message
marco.pallotta (marco-pallotta) said :
#2

Simple, but I have no restore option.
Obviously this was my first try before opening a question.

I have an Ubuntu Hardy (in italian).

Revision history for this message
Bernhard (b.a.koenig) said :
#3

When you right-click on the file in trash: it's below the "Delete Permanently" option and above the "Encrypt" option. Maybe it's just a translation problem?

Revision history for this message
marco.pallotta (marco-pallotta) said :
#4

Bernhard below the "delete permanently" option I have the "Encrypt" option. Do you use Hardy? Can you confirm that in the Hardy English version the option exists?

In Intrepid (always in Italian) this option is availabe.

Revision history for this message
Bernhard (b.a.koenig) said :
#5

I used to have hardy before I upgraded to Intrepid and I'm absolutely sure the option was there.

Don't know if this is a good substitute but have you looked at the package "trash-cli"?

Revision history for this message
marco.pallotta (marco-pallotta) said :
#6

Bernhard, I have tried the issue on a Ubuntu Hardy live and there is no "restore" option. I think it's not a bug but a missing option in this distro.
About trash-cli I haven't this package in my Hardy repos.

Revision history for this message
marco.pallotta (marco-pallotta) said :
#7

I forgot to say that the test was made with an english version of Hardy.

Revision history for this message
Sam_ (and-sam) said :
#8

I'm on Hardy and it had and has no options 'encrypt'+'restore' for trashed files. This feature exists since Intrepid.

Nautilus version in Hardy
#2.22.5.1

Intrepid has GNOME 2.24
http://www.ubuntu.com/testing/intrepid/beta#New%20Features%20since%20Ubuntu%208.04

quote changelog:
Major changes in 2.23.5 are:
#87 * Add "restore from trash" functionality (only per item)
http://svn.gnome.org/viewvc/nautilus/tags/NAUTILUS_2_24_0/NEWS?view=markup

Revision history for this message
Bernhard (b.a.koenig) said :
#9

Hmm, strange. I'm pretty sure I used the "restore" option from time to time when I had hardy. Then how do you actually "restore" files in 8.04?

Revision history for this message
marco.pallotta (marco-pallotta) said :
#10

Drag & Drop but not to its original destination (I should read its info file and move the restored file to its original position by hand).

Revision history for this message
nhasian (nhasian) said :
#11

i'm using Intrepid Ibex 8.10 and the restore function is available

Revision history for this message
marco.pallotta (marco-pallotta) said :
#12

rhasian, I know this as already sayd in my first comments. The question is what about Hardy? Why in Hardy is there the info file (with the original position of the file) and not a tool to restore it to its original position?

Revision history for this message
Best Sam_ (and-sam) said :
#13

Well, because it's not a security bug, which concerns LTS releases like Hardy, hence it's considered a missing feature.
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/14412
https://blueprints.launchpad.net/ubuntu/+spec/gnome-trash-restore-files

##the next LTS release of Ubuntu will be 10.04 LTS, in April 2010

https://help.ubuntu.com/community/UpgradeNotes
quote:
LTS stands for 'Long Term Support', it is supported for three years for desktops and five years for servers. By supported it means that Ubuntu will continue to provide security updates, etc. for the entire term of 'support'.

Revision history for this message
marco.pallotta (marco-pallotta) said :
#14

Thanks Sam, that solved my question.