How to restore a tagged deleted file in DSpace 7?

128 views
Skip to first unread message

Frank Diepmaat

unread,
Aug 30, 2023, 7:32:28 AM8/30/23
to DSpace Technical Support

Hi all,

I’m new to this community and my institution is considering deploying DSpace as their future institutional repository

In one of the conversations within this DSpace Technical Support pages I’ve read following:

‘When a bitstream is 'deleted' in DSpace, it's actually just tagged

'deleted'; the original file isn't immediately removed from the file

system. This allows 'rollback' functionality and is intended to help

prevent some nasty mistakes being made!’

 

However, I was wondering how to restore the tagged 'deleted' file. Is there a provision within the application that allows a DSpace administrator to restore the file or can this only be done at the server level by, for example, copying the file that is still in directory ../dspace/assestore to another directory?


Best regards,

Frank Diepmaat

Jose Blanco

unread,
Aug 30, 2023, 11:04:35 AM8/30/23
to Frank Diepmaat, DSpace Technical Support
HI Frank,

I am not 100% sure, but I think in order to restore files that have
been deleted via the UI, you will have to write a script. I found
this in the documentation ( look at the second row ):

https://wiki.lyrasis.org/display/DSDOC7x/AIP+Backup+and+Restore#AIPBackupandRestore-HowdoesthisdifferfromtraditionalDSpaceBackups?WhichBackuprouteisbetter?

I think you will have to have a good understanding of the database to
write the script, but as long as the following has not been run:

./dspace cleanup -v ( the -v is for verbose, not really needed )

You should be able to get the file(s) back and then add them to the
appropriate items.

But again, I'm not 100% sure there is not a tool already provided by
Dspace to do this.

-Jose
> --
> All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/d2db1ee0-c000-4ba6-abe0-92ce9c9f2c06n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages