]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - doc/html/Backup,-restore,-import-and-export/index.html
Merge pull request #911 from virtualtam/fix/release/composer
[github/shaarli/Shaarli.git] / doc / html / Backup,-restore,-import-and-export / index.html
1 <!DOCTYPE html>
2 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
3 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
4 <head>
5 <meta charset="utf-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
9
10 <link rel="shortcut icon" href="../img/favicon.ico">
11 <title>Backup, restore, import and export - Shaarli Documentation</title>
12 <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
13
14 <link rel="stylesheet" href="../css/theme.css" type="text/css" />
15 <link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
16 <link rel="stylesheet" href="../css/highlight.css">
17 <link href="../github-markdown.css" rel="stylesheet">
18
19 <script>
20 // Current page data
21 var mkdocs_page_name = "Backup, restore, import and export";
22 var mkdocs_page_input_path = "Backup,-restore,-import-and-export.md";
23 var mkdocs_page_url = "/Backup,-restore,-import-and-export/";
24 </script>
25
26 <script src="../js/jquery-2.1.1.min.js"></script>
27 <script src="../js/modernizr-2.8.3.min.js"></script>
28 <script type="text/javascript" src="../js/highlight.pack.js"></script>
29
30 </head>
31
32 <body class="wy-body-for-nav" role="document">
33
34 <div class="wy-grid-for-nav">
35
36
37 <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
38 <div class="wy-side-nav-search">
39 <a href=".." class="icon icon-home"> Shaarli Documentation</a>
40 <div role="search">
41 <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
42 <input type="text" name="q" placeholder="Search docs" />
43 </form>
44 </div>
45 </div>
46
47 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
48 <ul class="current">
49
50
51 <li class="toctree-l1">
52
53 <a class="" href="..">Home</a>
54 </li>
55
56 <li class="toctree-l1">
57
58 <span class="caption-text">Setup</span>
59 <ul class="subnav">
60 <li class="">
61
62 <a class="" href="../Download-and-Installation/">Download and Installation</a>
63 </li>
64 <li class="">
65
66 <a class="" href="../Upgrade-and-migration/">Upgrade and migration</a>
67 </li>
68 <li class="">
69
70 <a class="" href="../Server-requirements/">Server requirements</a>
71 </li>
72 <li class="">
73
74 <a class="" href="../Server-configuration/">Server configuration</a>
75 </li>
76 <li class="">
77
78 <a class="" href="../Server-security/">Server security</a>
79 </li>
80 <li class="">
81
82 <a class="" href="../Shaarli-configuration/">Shaarli configuration</a>
83 </li>
84 <li class="">
85
86 <a class="" href="../Plugins/">Plugins</a>
87 </li>
88 </ul>
89 </li>
90
91 <li class="toctree-l1">
92
93 <span class="caption-text">Docker</span>
94 <ul class="subnav">
95 <li class="">
96
97 <a class="" href="../docker/docker-101/">Docker 101</a>
98 </li>
99 <li class="">
100
101 <a class="" href="../docker/shaarli-images/">Shaarli images</a>
102 </li>
103 <li class="">
104
105 <a class="" href="../docker/reverse-proxy-configuration/">Reverse proxy configuration</a>
106 </li>
107 <li class="">
108
109 <a class="" href="../docker/resources/">Docker resources</a>
110 </li>
111 </ul>
112 </li>
113
114 <li class="toctree-l1">
115
116 <span class="caption-text">Usage</span>
117 <ul class="subnav">
118 <li class="">
119
120 <a class="" href="../Features/">Features</a>
121 </li>
122 <li class="">
123
124 <a class="" href="../Bookmarklet/">Bookmarklet</a>
125 </li>
126 <li class="">
127
128 <a class="" href="../Browsing-and-searching/">Browsing and searching</a>
129 </li>
130 <li class="">
131
132 <a class="" href="../Firefox-share/">Firefox share</a>
133 </li>
134 <li class="">
135
136 <a class="" href="../RSS-feeds/">RSS feeds</a>
137 </li>
138 <li class="">
139
140 <a class="" href="../REST-API/">REST API</a>
141 </li>
142 </ul>
143 </li>
144
145 <li class="toctree-l1">
146
147 <span class="caption-text">How To</span>
148 <ul class="subnav">
149 <li class=" current">
150
151 <a class="current" href="./">Backup, restore, import and export</a>
152 <ul class="subnav">
153
154 <li class="toctree-l3"><a href="#backup-and-restore-the-datastore-file">Backup and restore the datastore file</a></li>
155
156
157 <li class="toctree-l3"><a href="#export-links-as">Export links as...</a></li>
158
159
160 <li class="toctree-l3"><a href="#import-links-from">Import links from...</a></li>
161
162 <ul>
163
164 <li><a class="toctree-l4" href="#diigo">Diigo</a></li>
165
166 <li><a class="toctree-l4" href="#mister-wong">Mister Wong</a></li>
167
168 <li><a class="toctree-l4" href="#semanticscuttle">SemanticScuttle</a></li>
169
170 <li><a class="toctree-l4" href="#scuttle">Scuttle</a></li>
171
172 </ul>
173
174
175 <li class="toctree-l3"><a href="#import-shaarli-links-to-firefox">Import Shaarli links to Firefox</a></li>
176
177
178 </ul>
179 </li>
180 <li class="">
181
182 <a class="" href="../Various-hacks/">Various hacks</a>
183 </li>
184 </ul>
185 </li>
186
187 <li class="toctree-l1">
188
189 <a class="" href="../Troubleshooting/">Troubleshooting</a>
190 </li>
191
192 <li class="toctree-l1">
193
194 <span class="caption-text">Development</span>
195 <ul class="subnav">
196 <li class="">
197
198 <a class="" href="../Development-guidelines/">Development guidelines</a>
199 </li>
200 <li class="">
201
202 <a class="" href="../Continuous-integration-tools/">Continuous integration tools</a>
203 </li>
204 <li class="">
205
206 <a class="" href="../GnuPG-signature/">GnuPG signature</a>
207 </li>
208 <li class="">
209
210 <a class="" href="../Coding-guidelines/">Coding guidelines</a>
211 </li>
212 <li class="">
213
214 <a class="" href="../Directory-structure/">Directory structure</a>
215 </li>
216 <li class="">
217
218 <a class="" href="../3rd-party-libraries/">3rd party libraries</a>
219 </li>
220 <li class="">
221
222 <a class="" href="../Plugin-System/">Plugin System</a>
223 </li>
224 <li class="">
225
226 <a class="" href="../Release-Shaarli/">Release Shaarli</a>
227 </li>
228 <li class="">
229
230 <a class="" href="../Versioning-and-Branches/">Versioning and Branches</a>
231 </li>
232 <li class="">
233
234 <a class="" href="../Security/">Security</a>
235 </li>
236 <li class="">
237
238 <a class="" href="../Static-analysis/">Static analysis</a>
239 </li>
240 <li class="">
241
242 <a class="" href="../Theming/">Theming</a>
243 </li>
244 <li class="">
245
246 <a class="" href="../Unit-tests/">Unit tests</a>
247 </li>
248 </ul>
249 </li>
250
251 <li class="toctree-l1">
252
253 <span class="caption-text">About</span>
254 <ul class="subnav">
255 <li class="">
256
257 <a class="" href="../FAQ/">FAQ</a>
258 </li>
259 <li class="">
260
261 <a class="" href="../Community-&-Related-software/">Community & Related software</a>
262 </li>
263 </ul>
264 </li>
265
266 </ul>
267 </div>
268 &nbsp;
269 </nav>
270
271 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
272
273
274 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
275 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
276 <a href="..">Shaarli Documentation</a>
277 </nav>
278
279
280 <div class="wy-nav-content">
281 <div class="rst-content">
282 <div role="navigation" aria-label="breadcrumbs navigation">
283 <ul class="wy-breadcrumbs">
284 <li><a href="..">Docs</a> &raquo;</li>
285
286
287
288 <li>How To &raquo;</li>
289
290
291
292 <li>Backup, restore, import and export</li>
293 <li class="wy-breadcrumbs-aside">
294
295 <a href="https://github.com/shaarli/Shaarli/edit/master/docs/Backup,-restore,-import-and-export.md"
296 class="icon icon-github"> Edit on GitHub</a>
297
298 </li>
299 </ul>
300 <hr/>
301 </div>
302 <div role="main">
303 <div class="section">
304
305 <ul>
306 <li><a href="#backup-and-restore-the-datastore-file">Backup and restore the datastore file</a></li>
307 <li><a href="#export-links-as">Export links as...</a></li>
308 <li><a href="#import-links-from">Import links from...</a></li>
309 <li><a href="#import-shaarli-links-to-firefox">Import Shaarli links to Firefox</a></li>
310 </ul>
311 <hr />
312 <h2 id="backup-and-restore-the-datastore-file">Backup and restore the datastore file</h2>
313 <p>Backup the file <code>data/datastore.php</code> (by FTP or SSH). Restore by putting the file back in place.</p>
314 <p>Example command:</p>
315 <pre><code class="bash">rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
316 </code></pre>
317
318 <h2 id="export-links-as">Export links as...</h2>
319 <p>To export links as an HTML file, under <em>Tools &gt; Export</em>, choose:
320 - <em>Export all</em> to export both public and private links
321 - <em>Export public</em> to export public links only
322 - <em>Export private</em> to export private links only</p>
323 <p>Restore by using the <code>Import</code> feature.
324 * This can be done using the <a href="https://github.com/nodiscc/shaarchiver">shaarchiver</a> tool.</p>
325 <p>Example command: </p>
326 <pre><code class="bash">./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
327 </code></pre>
328
329 <h2 id="import-links-from">Import links from...</h2>
330 <h3 id="diigo">Diigo</h3>
331 <p>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.)</p>
332 <h3 id="mister-wong">Mister Wong</h3>
333 <p>See <a href="https://github.com/sebsauvage/Shaarli/issues/146">this issue</a> for import tweaks.</p>
334 <h3 id="semanticscuttle">SemanticScuttle</h3>
335 <p>To correctly import the tags from a <a href="http://semanticscuttle.sourceforge.net/">SemanticScuttle</a> HTML export, edit the HTML file before importing and replace all occurences of <code>tags=</code> (lowercase) to <code>TAGS=</code> (uppercase).</p>
336 <h3 id="scuttle">Scuttle</h3>
337 <p>Shaarli cannot import data directly from <a href="https://github.com/scronide/scuttle">Scuttle</a>. However, you can use this third party tool: https://github.com/q2apro/scuttle-to-shaarli to export the Scuttle database to the Netscape HTML format compatible with the Shaarli importer.</p>
338 <h2 id="import-shaarli-links-to-firefox">Import Shaarli links to Firefox</h2>
339 <ul>
340 <li>Export your Shaarli links as described above.</li>
341 <li>For compatibility reasons, check <code>Prepend note permalinks with this Shaarli instance's URL (useful to import bookmarks in a web browser)</code></li>
342 <li>In Firefox, open the bookmark manager (not the sidebar! <code>Bookmarks menu &gt; Show all bookmarks</code> or <code>Ctrl+Shift+B</code>)</li>
343 <li>Select <code>Import and Backup &gt; Import bookmarks in HTML format</code></li>
344 </ul>
345 <p>Your bookmarks will be imported in Firefox, ready to use, with tags and descriptions retained. "Self" (notes) shaares will still point to the Shaarli instance you exported them from, but the note text can be viewed directly in the bookmark properties inside your browser. Depending on the number of bookmarks, the import can take some time.</p>
346 <p>You may be interested in these Firefox addons to manage links imported from Shaarli</p>
347 <ul>
348 <li><a href="https://addons.mozilla.org/en-US/firefox/addon/bookmark-deduplicator/">Bookmark Deduplicator</a> - provides an easy way to deduplicate your bookmarks</li>
349 <li><a href="https://addons.mozilla.org/en-US/firefox/addon/tagsieve/">TagSieve</a> - browse your bookmarks by their tags</li>
350 </ul>
351
352 </div>
353 </div>
354 <footer>
355
356 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
357
358 <a href="../Various-hacks/" class="btn btn-neutral float-right" title="Various hacks">Next <span class="icon icon-circle-arrow-right"></span></a>
359
360
361 <a href="../REST-API/" class="btn btn-neutral" title="REST API"><span class="icon icon-circle-arrow-left"></span> Previous</a>
362
363 </div>
364
365
366 <hr/>
367
368 <div role="contentinfo">
369 <!-- Copyright etc -->
370
371 </div>
372
373 Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
374 </footer>
375
376 </div>
377 </div>
378
379 </section>
380
381 </div>
382
383 <div class="rst-versions" role="note" style="cursor: pointer">
384 <span class="rst-current-version" data-toggle="rst-current-version">
385
386 <a href="https://github.com/shaarli/Shaarli" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
387
388
389 <span><a href="../REST-API/" style="color: #fcfcfc;">&laquo; Previous</a></span>
390
391
392 <span style="margin-left: 15px"><a href="../Various-hacks/" style="color: #fcfcfc">Next &raquo;</a></span>
393
394 </span>
395 </div>
396 <script src="../js/theme.js"></script>
397
398 </body>
399 </html>