DokuWiki

It's better when it's simple

User Tools

Site Tools


faq:backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
faq:backup [2016-07-22 01:41] – [See also] jjensenfaq:backup [2023-12-31 16:30] (current) – cache, index, locks and tmp are inside of "data" but the info incorrectly missed that point, fixed now (I foujd this since I was making a backup script that excluded these recommended dirs btu the script failed to find them, and I checked and indeed they 2601:248:c500:67b0:3cd2:7a61:14f0:aa78
Line 8: Line 8:
  
   * ''data/pages'' - contains your current pages   * ''data/pages'' - contains your current pages
 +  * ''data/attic'' - all the old versions of your pages
   * ''data/meta'' - contains meta information about your pages (like who created it originally, who subscribed to it, ...)   * ''data/meta'' - contains meta information about your pages (like who created it originally, who subscribed to it, ...)
   * ''data/media'' - contains your current media (images, PDFs, ...)   * ''data/media'' - contains your current media (images, PDFs, ...)
-  * ''data/media_meta'' - meta data for the media 
-  * ''data/attic'' - all the old versions of your pages 
   * ''data/media_attic'' - all the old versions of your media   * ''data/media_attic'' - all the old versions of your media
 +  * ''data/media_meta'' - meta data for the media
   * ''conf'' - the configuration settings   * ''conf'' - the configuration settings
 +  * ''lib'' - will backup the installed plugins and templates (many optional, otherwise they will need to be manually downloaded again in a possibly broken interface) However, take care not to overwrite the default included core plugins.
 +
 +You can exclude the ''data/cache'', ''data/index'', ''data/locks'', and ''data/tmp'' directories.
  
-You can exclude the ''cache'', ''index'', ''locks'', and ''tmp'' directories.+''lib'' folder contains also core fileswhich should not be replacedprobably only plugins and tpl folders are useful.
  
-====== How to restore from backup DokuWiki? ======+Note: if you installed DokuWiki through a 3rd party package like [[install:Debian]] the directory layout may differ.
  
-===== Restore DokuWiki on same server - different folder ===== 
-==== Background: want two versions of DokuWiki installed on the same server, where one version is live and the other for testing ==== 
-  - Example case: original DokuWiki installed in ''../dw'' folder. Then do a second install (same version of DokuWiki) in ''../dw2'' folder. Verify DokuWiki is working in ''../**dw2**''. 
-  - Install custom DokuWiki template, in this case using [[https://www.dokuwiki.org/template:vector|vector template]]. 
-    - Upload, extract and rename into the ''../**dw2**/lib/tpl/vector'' folder 
-    - If using a custom logo, then copy ''../dw/lib/tpl/vector/user/logo.jpg'' to ''../**dw2**/lib/tpl/vector/user/logo.jpg'' 
-  - login DokuWiki Admin (Configuration Manager) make following changes 
-    - Basic: change template to **vector** 
-    - Advanced: use nice URLs > .htaccess 
-    - Advanced: Use slash as namespace separator in URLs 
-  - Configure [[https://www.dokuwiki.org/rewrite|URL Rewriting]] 
-    - edit ''../dw2/.htaccess.dist'' by uncommenting (removing #) the url rewrite code section then save as ''../dw2/.htaccess'' 
-  - Copy following folders 
-    - ''../dw/data'' to ''../dw2/data''  
-    - ''../dw/conf'' to ''../dw2/conf'' 
-    - ''../dw/lib/plugins'' to ''../dw2/lib/plugins'' (see below) 
-    - Used GoDaddy File Manager on shared hosting unless you have shell access privileges. 
-  - Plugins 
-    - Option 1: copy ''../dw/lib/plugins'' to ''../dw2/lib/plugins'' 
-      - login to DokuWiki Admin (Configuration Manager) > [[https://www.dokuwiki.org/plugin:extension|Extension Manager]] (plugin bundled with DokuWiki) to check for proper install and required updates to plugins/templates 
-      - to ensure plugins are compatible, verify DokuWiki version is same between ''../dw'' and ''../dw2'' (tip from [[https://forum.dokuwiki.org/user/4479|mmturner]]) 
-    - Option 2: manually download and extract plugins into the ''/dw2/lib/plugins'' folder 
-  - Test everything is working 
-  - References 
-    - [[https://forum.dokuwiki.org/post/52838;nocount|DokuWiki Forum - moving copy of site to new folder]] 
 ===== See also ===== ===== See also =====
  
-  * [[https://www.dokuwiki.org/faq:servermove|FAQ Server Move]]+  * [[faq:servermove|FAQ Server Move]]
   * [[plugin:backup|Backup Plugin]]   * [[plugin:backup|Backup Plugin]]
   * [[tips:backup_script|Backup Scripts]]   * [[tips:backup_script|Backup Scripts]]
   * [[tips:backuptos3|Backup to S3]]   * [[tips:backuptos3|Backup to S3]]
  
faq/backup.1469144502.txt.gz · Last modified: 2016-07-22 01:41 by jjensen

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki