[Deprecated starting XWiki 9.10] Port attachments from the database to the filesystem store
Last modified by Gabriela Anechitoaei on 2022/05/03 09:29
Steps to reproduce
NOTE: Starting with version 9.10, this attachments porting operation is deprecated as XWiki supports mixed storage (database and file system) for attachments which means if switched from 'hibernate' to 'file' store, the existing attachments will keep working.
- Enable Filesystem Attachment Store
- Download the XAR for the
- Upload it (Administer Wiki > Content > Import > Browse)
- Under "Available packages" click on the newly added FilesystelAttachmentPorterScript
- Click on Import
- Under "List of installed pages" click on FilesystemAttachmentPorter.WebHome
- Make sure the 3 bullet points from "Step 1" are colored in green, otherwise this means the 'xwiki.cfg' was not configured properly; see step 1 & 2 of Enable Filesystem Attachment Store
- Copy the code from this page (Edit > Wiki)
- Create a new page (P1)
- Paste the code from the Filesystem Attachment Porter (Edit > Wiki)
- Tick the "Dry Run" option
- Click Start (wait for the run to finish)
- Click on the P1 page again
- Untick the "Dry Run" option
- Click Start
Expected results
- A message similar to "[87] attachments" is displayed inside the "Step 3" section (at the bottom of the attachments list) when Dry-Run the script.
- Inside data\storage\xwiki\ are folders including attachments for each page that has attachments when run the script with the "Dry Run" option unticked. Note - if Tomcat is used, then the folders can be found in TOMCAT_HOME\work\Catalina\localhost\xwiki\storage\xwiki.
Results
per page of Previous Page Next Page Page | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Previous Page Next Page Page |