File: backup.rst

package info (click to toggle)
copyq 3.7.3-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 10,480 kB
  • sloc: cpp: 51,894; sh: 734; python: 211; xml: 57; makefile: 34
file content (69 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Backup
======

This page describes how to back up tabs, configuration and commands in
CopyQ.

Back Up Manually
----------------

To back up all the data, **exit the application** first and **copy
the configuration directory**.

Path to configuration is usually:

-  Windows: ``%APPDATA%\copyq``
-  Portable version for Windows: ``config`` sub-folder in unzipped
   application directory
-  Linux: ``~/.config/copyq``

To copy the configuration path to clipboard from CopyQ:

1. open Action dialog (``F5`` shortcut),
2. enter command

.. code-block:: js

    copyq:
    dir = Dir(info('config') + '/..')
    copy(dir.absolutePath())

3. click OK dialog button.

To restore the backup, exit the application and replace the
configuration directory.

.. warning::

    Before making or restoring back up, always exit CopyQ
    (don't only close the main window).

Export and Import
-----------------

You can easily export selected tabs and optionally
configuration and commands within the application.

.. warning::

    Tabs are always exported **unencrypted** and if a tab is
    synchronized with directory on disk the files themselves won't be
    exported.

To export the data click "Export..." in "File" menu and select what to
export, confirm with OK button and select file to save the stuff to.

To restore the data click "Import..." in "File" menu, select file to
import and select what to import.

.. note::

    Import won't overwrite existing tabs and commands but create new ones.

Alternatively you can use command line for export and import everything
(selection dialogs won't be opened).

.. code-block:: bash

    copyq exportData {FILE/PATH/TO/EXPORT}
    copyq importData {FILE/PATH/TO/IMPORT}