]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - doc/Backup,-restore,-import-and-export.md
cf6b9f48ea6f17c84357846dcc3def4944007531
[github/shaarli/Shaarli.git] / doc / Backup,-restore,-import-and-export.md
1 #Backup, restore, import and export
2 ## Backup and restore the datastore file
3
4 Backup the file `data/datastore.php` (by FTP or SSH). Restore by putting the file back in place.
5
6 Example command:
7 ```bash
8 rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
9 ```
10
11 ## Export links as...
12 To 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
17 Restore by using the `Import` feature.
18 * This can be done using the [shaarchiver](https://github.com/nodiscc/shaarchiver) tool.[](.html)
19
20 Example 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
28 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.)
29
30 ### Mister Wong
31 See [this issue](https://github.com/sebsauvage/Shaarli/issues/146) for import tweaks.[](.html)
32
33 ### SemanticScuttle
34
35 To 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)