Dear All,
I created an AIP backup of my site using :-
[dspace]/bin/dspace packager -d -a -t AIP -e <my-email> -i 123456789/0 sitewide-dspace77-aip.zip
I put ALL the zip files created by the above command in the folder : /home/ashim/my-backup/BACKUP/
Now I am trying to restore :
Try 1:
dspace@ashim-VirtualBox:~/bin$ ./dspace packager -r -a -f -t AIP -e library@localhost -i 1/0 -o skipIfParentMissing=true /home/ashim/my-backup/BACKUP/sitewide-dspace77-aip.zip
WARNING -- You are running the packager in REPLACE mode.
REPLACE mode may be potentially dangerous as it will automatically remove and replace contents within DSpace.
We highly recommend backing up all your DSpace contents (files & database) before continuing.
Would you like to continue? [y/n]: y
Beginning replacement process...
Replacing DSpace object(s) with package located at /home/ashim/my-backup/BACKUP/sitewide-dspace77-aip.zip
Will replace existing DSpace SITE [ hdl=1/0 ]
REPLACED a total of 1 DSpace Objects.
Would you like to view a list of all objects that were replaced? [y/n]: y
REPLACED DSpace SITE [ hdl=1/0 ]
I do NOT see any restored items in my site.
Then I tried the following: -
Try 2 :
dspace@ashim-VirtualBox:~/bin$ ./dspace packager -r -a -f -t AIP -e library@localhost -i 1/0 -o skipIfParentMissing=true /home/ashim/my-backup/BACKUP/*zip
WARNING -- You are running the packager in REPLACE mode.
REPLACE mode may be potentially dangerous as it will automatically remove and replace contents within DSpace.
We highly recommend backing up all your DSpace contents (files & database) before continuing.
Would you like to continue? [y/n]: y
Beginning replacement process...
Replacing DSpace object(s) with package located at /home/ashim/my-backup/BACKUP/COLLE...@123456789-10.zip
Will replace existing DSpace SITE [ hdl=1/0 ]
org.dspace.content.packager.PackageValidationException: The object type of the METS manifest (COLLECTION) does not match up with the object type (SITE) of the DSpaceObject to be replaced!
at org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:608)
at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1213)
at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:292)
at org.dspace.app.packager.Packager.replace(Packager.java:737)
at org.dspace.app.packager.Packager.main(Packager.java:377)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
org.dspace.content.packager.PackageValidationException: The object type of the METS manifest (COLLECTION) does not match up with the object type (SITE) of the DSpaceObject to be replaced!
dspace@ashim-VirtualBox:~/bin$
Can someone please help me? What is the correct way of restoring?
Thank you,
Ashim