USAGE » История » Версия 5
Dmitry Chernyak, 07.07.2016 13:27
1 | 1 | Александр Кобуз | h1. USAGE |
---|---|---|---|
2 | 1 | Александр Кобуз | |
3 | 4 | Dmitry Chernyak | {{toc}} |
4 | 4 | Dmitry Chernyak | |
5 | 3 | Dmitry Chernyak | {{include(ОГЛАВЛЕНИЕ)}} |
6 | 3 | Dmitry Chernyak | |
7 | 1 | Александр Кобуз | SkyCover Duply Usage Guidelines |
8 | 1 | Александр Кобуз | |
9 | 1 | Александр Кобуз | <pre> |
10 | 1 | Александр Кобуз | All the actions are executing in the command line. |
11 | 1 | Александр Кобуз | The Windows ™ users should start the CygWin shell. |
12 | 1 | Александр Кобуз | </pre> |
13 | 1 | Александр Кобуз | |
14 | 1 | Александр Кобуз | h2. Configure the job |
15 | 1 | Александр Кобуз | |
16 | 1 | Александр Кобуз | <pre> |
17 | 1 | Александр Кобуз | scduply JOB create |
18 | 1 | Александр Кобуз | </pre> |
19 | 1 | Александр Кобуз | |
20 | 1 | Александр Кобуз | JOB – job’s name. The subfolder named JOB will be created and the configuration templates will be placed there. |
21 | 1 | Александр Кобуз | |
22 | 1 | Александр Кобуз | h3. The source |
23 | 1 | Александр Кобуз | |
24 | 1 | Александр Кобуз | Open the file “JOB/source” and write there, on the forst line the path to the folder you wish to backup. |
25 | 1 | Александр Кобуз | |
26 | 1 | Александр Кобуз | The simplest job is complete – you can do the backup right now! |
27 | 1 | Александр Кобуз | |
28 | 1 | Александр Кобуз | h3. The exclusions |
29 | 1 | Александр Кобуз | |
30 | 1 | Александр Кобуз | If you need them, open the file “JOB/exclude” and write there the paths, which should be included or excluded in the backup. |
31 | 1 | Александр Кобуз | |
32 | 1 | Александр Кобуз | <pre> |
33 | 1 | Александр Кобуз | + /home/billing |
34 | 1 | Александр Кобуз | + /home/www |
35 | 1 | Александр Кобуз | - ** |
36 | 1 | Александр Кобуз | </pre> |
37 | 1 | Александр Кобуз | |
38 | 1 | Александр Кобуз | Use the full paths. It is possible to use wildcards. Double star means “all files”. |
39 | 1 | Александр Кобуз | |
40 | 1 | Александр Кобуз | h3. The individual settings |
41 | 1 | Александр Кобуз | |
42 | 1 | Александр Кобуз | If needed, you can set individual configuration settings for the backup job in the file “JOB/conf”. |
43 | 1 | Александр Кобуз | |
44 | 1 | Александр Кобуз | h3. To exclude job from the batch backup |
45 | 1 | Александр Кобуз | |
46 | 1 | Александр Кобуз | If the job should not be executed in the batch mode via the “bkpall” command, you should create the empty file “JOB/skip”. |
47 | 1 | Александр Кобуз | |
48 | 1 | Александр Кобуз | h2. Backup |
49 | 1 | Александр Кобуз | |
50 | 1 | Александр Кобуз | <pre> |
51 | 1 | Александр Кобуз | scduply JOB backup |
52 | 1 | Александр Кобуз | </pre> |
53 | 1 | Александр Кобуз | |
54 | 1 | Александр Кобуз | or, for all jobs |
55 | 1 | Александр Кобуз | |
56 | 1 | Александр Кобуз | <pre> |
57 | 1 | Александр Кобуз | scduply bkpall |
58 | 1 | Александр Кобуз | </pre> |
59 | 1 | Александр Кобуз | |
60 | 1 | Александр Кобуз | If the global configuration file has the settings for MAIL_TO, MAIL_FROM, MAIL_SUBJECT and MAIL_CMD parameters, then bkpall will mail the report with the backup summary and the raw backup log. |
61 | 1 | Александр Кобуз | |
62 | 1 | Александр Кобуз | h2. Restore |
63 | 1 | Александр Кобуз | |
64 | 1 | Александр Кобуз | <pre> |
65 | 1 | Александр Кобуз | scduply JOB restore DIRECTORY-WHERE |
66 | 1 | Александр Кобуз | </pre> |
67 | 1 | Александр Кобуз | |
68 | 1 | Александр Кобуз | h3. Restore for 4 days ago |
69 | 1 | Александр Кобуз | |
70 | 1 | Александр Кобуз | <pre> |
71 | 1 | Александр Кобуз | scduply JOB restore DIRECTORY-WHERE 4D |
72 | 1 | Александр Кобуз | </pre> |
73 | 1 | Александр Кобуз | |
74 | 1 | Александр Кобуз | h3. Restore for 4 days ago, only subdirectory “will_be_lost” |
75 | 1 | Александр Кобуз | |
76 | 1 | Александр Кобуз | <pre> |
77 | 1 | Александр Кобуз | scduply JOB fetch will_be_lost DIRECTORY-WHERE 4D |
78 | 1 | Александр Кобуз | </pre> |
79 | 1 | Александр Кобуз | |
80 | 1 | Александр Кобуз | h2. Check status |
81 | 1 | Александр Кобуз | |
82 | 1 | Александр Кобуз | <pre> |
83 | 1 | Александр Кобуз | scduply JOB status |
84 | 1 | Александр Кобуз | </pre> |
85 | 1 | Александр Кобуз | |
86 | 1 | Александр Кобуз | h2. List files |
87 | 1 | Александр Кобуз | |
88 | 1 | Александр Кобуз | <pre> |
89 | 1 | Александр Кобуз | scduply JOB list [AGE] |
90 | 1 | Александр Кобуз | </pre> |
91 | 1 | Александр Кобуз | |
92 | 1 | Александр Кобуз | h2. Restore after the losing of the hardware |
93 | 1 | Александр Кобуз | |
94 | 1 | Александр Кобуз | h3. The minimal set |
95 | 1 | Александр Кобуз | |
96 | 1 | Александр Кобуз | For restoring of the system in the case of losing the hardware you’ll need: |
97 | 1 | Александр Кобуз | |
98 | 1 | Александр Кобуз | <pre> |
99 | 1 | Александр Кобуз | + Your GPG-key and the password to it (or only the symmetric cryptography password, if the GPG-key is not used). |
100 | 1 | Александр Кобуз | *Suggestion*: make the copy of the settings folder (AFTER the first success backup session – it will hold thr exported copy of the GPG-key and the other settings). |
101 | 1 | Александр Кобуз | + ssh-key which was used for connecting to the backup storage. |
102 | 1 | Александр Кобуз | *Suggestion*: make a copy of the ~/.ssh folder. |
103 | 1 | Александр Кобуз | </pre> |
104 | 1 | Александр Кобуз | |
105 | 1 | Александр Кобуз | |
106 | 1 | Александр Кобуз | These data need to be copied to the removable media (for ex., USB-Flash) and hold in the secret place, outside the office. |
107 | 1 | Александр Кобуз | |
108 | 1 | Александр Кобуз | <pre> |
109 | 1 | Александр Кобуз | The copy of these data must *MANDATORY* be holding by the company’s boss and to be saved outside the office. |
110 | 1 | Александр Кобуз | </pre> |
111 | 1 | Александр Кобуз | |
112 | 2 | Александр Кобуз | h3. The full set |
113 | 1 | Александр Кобуз | |
114 | 1 | Александр Кобуз | The full set, which is needed for restoration with a comfort includes: |
115 | 1 | Александр Кобуз | |
116 | 2 | Александр Кобуз | <pre> |
117 | 2 | Александр Кобуз | + The fresh copy of the settings folder (because it will hold the full list of the jobs, the last exclusion settings etc.); |
118 | 2 | Александр Кобуз | + The backup logs and reports.; |
119 | 2 | Александр Кобуз | + The ssh-key for access to the backup storage. |
120 | 2 | Александр Кобуз | </pre> |
121 | 2 | Александр Кобуз | |
122 | 2 | Александр Кобуз | <pre> |
123 | 1 | Александр Кобуз | It will be a good idea to save in the safe and secret place the GPG-key, the password and the ssh-key as it was mentioned above and to set up the additional backup job for saving all the settings and logs on the standard backup storage. |
124 | 2 | Александр Кобуз | </pre> |
125 | 1 | Александр Кобуз | |
126 | 1 | Александр Кобуз | The settings are placed in the /etc/scduply folder (if it was preconfigured and scduply is runnig by root) or in the ~/.scduply folder. |
127 | 1 | Александр Кобуз | |
128 | 1 | Александр Кобуз | The backup logs and reports are writen into /var/log/scduply or in the ~/.scduply/log respectively. |
129 | 1 | Александр Кобуз | |
130 | 2 | Александр Кобуз | h3. The backup copy of CygWin is not needed |
131 | 1 | Александр Кобуз | |
132 | 1 | Александр Кобуз | There is no obligation to make the full backup of the CygWin shell, because it can be restored via new setup. |
133 | 1 | Александр Кобуз | |
134 | 2 | Александр Кобуз | h2. The technical details of scduply |
135 | 1 | Александр Кобуз | |
136 | 1 | Александр Кобуз | When running as root, scduply uses /etc/scduply folder for the settings. |
137 | 1 | Александр Кобуз | |
138 | 1 | Александр Кобуз | /etc/scduply should be manually created before the initialization. Otherwise ~/.scduply folder will be automatically created and used. |
139 | 1 | Александр Кобуз | |
140 | 1 | Александр Кобуз | In the settings folder the global configuration file “conf” is placed, and also the backup job’s profiles subfolders will be created there. |
141 | 1 | Александр Кобуз | |
142 | 1 | Александр Кобуз | Each subfolder has the files: |
143 | 1 | Александр Кобуз | |
144 | 2 | Александр Кобуз | <pre> |
145 | 2 | Александр Кобуз | + conf – the local job configuration file in which the global settings can be redefined |
146 | 2 | Александр Кобуз | + source – the first line of the file is holding the path to the folder to be backed up. |
147 | 2 | Александр Кобуз | + exclude – the file of the exclusion wildcards which will be submitted to duplicity with –exclude-globbing-filelist directive |
148 | 2 | Александр Кобуз | + descr – the description (the first line) and the notes (all the rest). It is created and used by SkyCover Duply Web frontend. |
149 | 2 | Александр Кобуз | + skip – if exists, the backup job will be ignored by bkpall command. |
150 | 2 | Александр Кобуз | + saved.env, gpg*.asc – the files holding the information which is required to restore data to the new computer. They are created automatically while backuping. |
151 | 2 | Александр Кобуз | </pre> |
152 | 2 | Александр Кобуз | |
153 | 1 | Александр Кобуз | While backuping scduply creates the log and the report and places them to the /var/log/scduply folder or to the ~/.scduply/log folder. |
154 | 1 | Александр Кобуз | |
155 | 2 | Александр Кобуз | h2. Additional information |
156 | 1 | Александр Кобуз | |
157 | 1 | Александр Кобуз | To be more effective with backuping, please consider the next sources: |
158 | 1 | Александр Кобуз | |
159 | 2 | Александр Кобуз | <pre> |
160 | 1 | Александр Кобуз | man duplicity |
161 | 2 | Александр Кобуз | </pre> |
162 | 2 | Александр Кобуз | |
163 | 2 | Александр Кобуз | <pre> |
164 | 1 | Александр Кобуз | sdcuply usage |
165 | 2 | Александр Кобуз | </pre> |
166 | 2 | Александр Кобуз | |
167 | 2 | Александр Кобуз | <pre> |
168 | 1 | Александр Кобуз | man scduply # in the present state - it is a duply man page, which differs only a bit. |
169 | 2 | Александр Кобуз | </pre> |
170 | 2 | Александр Кобуз | |
171 | 2 | Александр Кобуз | The file "CHANGES":https://raw.githubusercontent.com/skycover/scduply/master/CHANGES in the scduply’s source code is holding the brief difference description against duply. |