Проект

Общее

Профиль

SETUP » История » Версия 4

Dmitry Chernyak, 07.07.2016 13:30

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