SETUP » История » Версия 5
Dmitry Chernyak, 07.07.2016 13:32
1 | 1 | Dmitry Chernyak | h1. SETUP |
---|---|---|---|
2 | 1 | Dmitry Chernyak | |
3 | 5 | Dmitry Chernyak | {{toc}} |
4 | 5 | Dmitry Chernyak | |
5 | 1 | Dmitry Chernyak | {{include(ОГЛАВЛЕНИЕ)}} |
6 | 1 | Dmitry Chernyak | |
7 | 2 | Dmitry Chernyak | SkyCover Duply Usage Guidelines |
8 | 2 | Dmitry Chernyak | |
9 | 2 | Dmitry Chernyak | <pre> |
10 | 2 | Dmitry Chernyak | All the actions are executing in the command line. |
11 | 2 | Dmitry Chernyak | The Windows ™ users should start the CygWin shell. |
12 | 2 | Dmitry Chernyak | </pre> |
13 | 1 | Dmitry Chernyak | |
14 | 2 | Dmitry Chernyak | h2. Prepare |
15 | 2 | Dmitry Chernyak | |
16 | 2 | Dmitry Chernyak | If you are planning to save the configuration under /etc (it is available only when running as root), create folder /etc/scduply: |
17 | 2 | Dmitry Chernyak | |
18 | 1 | Dmitry Chernyak | <pre> |
19 | 2 | Dmitry Chernyak | mkdir /etc/scduply |
20 | 1 | Dmitry Chernyak | </pre> |
21 | 1 | Dmitry Chernyak | |
22 | 2 | Dmitry Chernyak | Otherwise the configuration will be automatically placed into ~/.scduply |
23 | 1 | Dmitry Chernyak | |
24 | 1 | Dmitry Chernyak | <pre> |
25 | 2 | Dmitry Chernyak | scduply init |
26 | 2 | Dmitry Chernyak | </pre> |
27 | 2 | Dmitry Chernyak | |
28 | 4 | Dmitry Chernyak | In the file ~/.scduply/conf or /etc/scduply/conf set the values: |
29 | 2 | Dmitry Chernyak | *GPG_KEY* – set the ID of the GPG key, if you planning to use the key, |
30 | 2 | Dmitry Chernyak | *GPG_PW* – set the password for the GPG key, or the password for symmetric encryption (don’t use weak passwords), |
31 | 2 | Dmitry Chernyak | *TARGET_URL* – set the path (network or local) to the backup archive storage (the examples are in the configuration file). |
32 | 2 | Dmitry Chernyak | |
33 | 2 | Dmitry Chernyak | Example: |
34 | 2 | Dmitry Chernyak | |
35 | 2 | Dmitry Chernyak | <pre> |
36 | 1 | Dmitry Chernyak | GPG_PW = 123456 |
37 | 1 | Dmitry Chernyak | TARGET_URL = /tmp/sctest |
38 | 1 | Dmitry Chernyak | </pre> |
39 | 1 | Dmitry Chernyak | |
40 | 2 | Dmitry Chernyak | h2. Test |
41 | 1 | Dmitry Chernyak | |
42 | 2 | Dmitry Chernyak | h3. Create a job |
43 | 2 | Dmitry Chernyak | |
44 | 1 | Dmitry Chernyak | <pre> |
45 | 1 | Dmitry Chernyak | $ scduply JOB create |
46 | 1 | Dmitry Chernyak | $ echo /path/to/backup > ~/.scduply/JOB/source |
47 | 1 | Dmitry Chernyak | </pre> |
48 | 1 | Dmitry Chernyak | |
49 | 2 | Dmitry Chernyak | h3. Do backup |
50 | 1 | Dmitry Chernyak | |
51 | 2 | Dmitry Chernyak | All configured jobs will be executed |
52 | 2 | Dmitry Chernyak | |
53 | 1 | Dmitry Chernyak | <pre> |
54 | 1 | Dmitry Chernyak | $ scduply bkpall |
55 | 1 | Dmitry Chernyak | </pre> |
56 | 1 | Dmitry Chernyak | |
57 | 1 | Dmitry Chernyak | The first backup of the job will be full, the next will be incremental with per-block difference via librsync algorythm. |
58 | 1 | Dmitry Chernyak | |
59 | 2 | Dmitry Chernyak | h3. Restore |
60 | 1 | Dmitry Chernyak | |
61 | 1 | Dmitry Chernyak | <pre> |
62 | 1 | Dmitry Chernyak | $ scduply JOB restore /path/to/restore |
63 | 1 | Dmitry Chernyak | </pre> |