X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FBackup%2C-restore%2C-import-and-export.html;h=4d72728e649644ea8c5288c08a1a49e6f9cb2009;hb=5e148f8a529abf72256ef74ed149d56a5b27bd72;hp=40c7a852b6a339f0e7ade55a026bef4bec718aa0;hpb=6335a0fc0ce0c2f962333f0b4d6baac1671df901;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Backup,-restore,-import-and-export.html b/doc/Backup,-restore,-import-and-export.html index 40c7a852..4d72728e 100644 --- a/doc/Backup,-restore,-import-and-export.html +++ b/doc/Backup,-restore,-import-and-export.html @@ -4,31 +4,49 @@ - Shaarli - Backup, restore, import and export + Shaarli – Backup, restore, import and export - +
@@ -36,20 +54,28 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Home
  • Installation
  • +
  • Docker
  • Usage
  • How To
  • @@ -61,6 +87,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Directory structure
  • 3rd party libraries
  • Plugin System
  • +
  • Release Shaarli
  • Security
  • Static analysis
  • Theming
  • @@ -78,7 +105,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

    Backup and restore the datastore file

    Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.

    Example command:

    -
    rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
    +
    rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php

    To export links as an HTML file, under Tools > Export, choose:

    Example command:

    -
    ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
    +
    ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all

    Diigo

    If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)