Проект

Общее

Профиль

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

Dmitry Chernyak, 07.07.2016 13:17

1 1 Dmitry Chernyak
h1. SETUP
2 1 Dmitry Chernyak
3 1 Dmitry Chernyak
{{include(ОГЛАВЛЕНИЕ)}}
4 1 Dmitry Chernyak
5 1 Dmitry Chernyak
Prepare
6 1 Dmitry Chernyak
7 1 Dmitry Chernyak
<pre>
8 1 Dmitry Chernyak
$ scduply init
9 1 Dmitry Chernyak
</pre>
10 1 Dmitry Chernyak
11 1 Dmitry Chernyak
In the ~/.scduply/conf set values, following tips in comments:
12 1 Dmitry Chernyak
13 1 Dmitry Chernyak
<pre>
14 1 Dmitry Chernyak
GPG_PW = 123456 
15 1 Dmitry Chernyak
TARGET_URL = /tmp/sctest
16 1 Dmitry Chernyak
</pre>
17 1 Dmitry Chernyak
18 1 Dmitry Chernyak
Create a job
19 1 Dmitry Chernyak
20 1 Dmitry Chernyak
<pre>
21 1 Dmitry Chernyak
$ scduply JOB create
22 1 Dmitry Chernyak
$ echo /path/to/backup > ~/.scduply/JOB/source
23 1 Dmitry Chernyak
</pre>
24 1 Dmitry Chernyak
25 1 Dmitry Chernyak
Do backup — all configured jobs will be executed
26 1 Dmitry Chernyak
27 1 Dmitry Chernyak
<pre>
28 1 Dmitry Chernyak
$ scduply bkpall
29 1 Dmitry Chernyak
</pre>
30 1 Dmitry Chernyak
31 1 Dmitry Chernyak
The first backup of the job will be full, the next will be incremental with per-block difference via librsync algorythm.
32 1 Dmitry Chernyak
33 1 Dmitry Chernyak
Restore
34 1 Dmitry Chernyak
35 1 Dmitry Chernyak
<pre>
36 1 Dmitry Chernyak
$ scduply JOB restore /path/to/restore
37 1 Dmitry Chernyak
</pre>