]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - doc/Backup,-restore,-import-and-export.md
Add a missing backslash in stable Dockerfile version
[github/shaarli/Shaarli.git] / doc / Backup,-restore,-import-and-export.md
CommitLineData
992af0b9
V
1#Backup, restore, import and export
2## Backup and restore the datastore file
3
4Backup the file `data/datastore.php` (by FTP or SSH). Restore by putting the file back in place.
5
6Example command:
7```bash
8rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
9```
10
11## Export links as...
12To export links as an HTML file, under _Tools > Export_, choose:
13- _Export all_ to export both public and private links
14- _Export public_ to export public links only
15- _Export private_ to export private links only
16
17Restore by using the `Import` feature.
18* This can be done using the [shaarchiver](https://github.com/nodiscc/shaarchiver) tool.[](.html)
19
20Example command:
21```bash
22./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
23```
24
25## Import links from...
26### Diigo
27
28If 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.)
29
30### Mister Wong
31See [this issue](https://github.com/sebsauvage/Shaarli/issues/146) for import tweaks.[](.html)
32
33### SemanticScuttle
34
35To correctly import the tags from a [SemanticScuttle](http://semanticscuttle.sourceforge.net/) HTML export, edit the HTML file before importing and replace all occurences of `tags=` (lowercase) to `TAGS=` (uppercase).[](.html)