1 |
patrick 11/08/29 10:41:07 |
2 |
|
3 |
Added: 05-nicelevel.patch |
4 |
03-reasonable-config.pl-defaults.patch |
5 |
01-fix-configure.pl.patch |
6 |
02-fix-config.pl-formatting.patch |
7 |
04-add-docdir-marker.patch |
8 |
Log: |
9 |
Bump for #287133, ebuild from the portage-backup overlay. Thanks to Lenno Nagel. |
10 |
|
11 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.1 app-backup/backuppc/files/3.2.0/05-nicelevel.patch |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/05-nicelevel.patch?rev=1.1&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/05-nicelevel.patch?rev=1.1&content-type=text/plain |
18 |
|
19 |
Index: 05-nicelevel.patch |
20 |
=================================================================== |
21 |
--- init.d/src/gentoo-backuppc.orig 2009-10-18 00:14:44.125346723 +0300 |
22 |
+++ init.d/src/gentoo-backuppc 2009-10-18 00:15:37.101346981 +0300 |
23 |
@@ -21,7 +21,7 @@ |
24 |
start() { |
25 |
checkconfig || return 1 |
26 |
ebegin "Starting BackupPC" |
27 |
- start-stop-daemon --start --chuid ${USER} --user ${USER} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS} |
28 |
+ start-stop-daemon --start --chuid ${USER} --user ${USER} --nicelevel ${NICELEVEL} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS} |
29 |
eend $? |
30 |
} |
31 |
|
32 |
--- init.d/src/gentoo-backuppc.conf.orig 2009-10-18 00:14:52.513347638 +0300 |
33 |
+++ init.d/src/gentoo-backuppc.conf 2009-10-18 00:16:03.457346630 +0300 |
34 |
@@ -3,3 +3,4 @@ |
35 |
PID_FILE=__LOGDIR__/BackupPC.pid |
36 |
EXEC=__INSTALLDIR__/bin/BackupPC |
37 |
EXEC_OPTIONS=-d |
38 |
+NICELEVEL=0 |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: 03-reasonable-config.pl-defaults.patch |
48 |
=================================================================== |
49 |
--- conf/config.pl.formatted 2010-09-03 23:09:13.035788559 +0300 |
50 |
+++ conf/config.pl 2010-09-03 23:10:19.314788450 +0300 |
51 |
@@ -1319,6 +1319,8 @@ |
52 |
'--times', |
53 |
'--block-size=2048', |
54 |
'--recursive', |
55 |
+ '--specials', |
56 |
+ '--checksum-seed=32761', |
57 |
]; |
58 |
|
59 |
# |
60 |
@@ -1385,6 +1387,8 @@ |
61 |
'--relative', |
62 |
'--ignore-times', |
63 |
'--recursive', |
64 |
+ '--specials', |
65 |
+ '--checksum-seed=32761', |
66 |
]; |
67 |
|
68 |
########################################################################### |
69 |
@@ -2015,7 +2019,7 @@ |
70 |
# --> administrative users are only craig and celia'. |
71 |
# |
72 |
$Conf{CgiAdminUserGroup} = ''; |
73 |
-$Conf{CgiAdminUsers} = ''; |
74 |
+$Conf{CgiAdminUsers} = 'backuppc'; |
75 |
|
76 |
# |
77 |
# URL of the BackupPC_Admin CGI script. Used for email messages. |
78 |
@@ -2062,7 +2066,7 @@ |
79 |
# dates (MM/DD), a value of 2 uses full YYYY-MM-DD format, and zero |
80 |
# for international dates (DD/MM). |
81 |
# |
82 |
-$Conf{CgiDateFormatMMDD} = 1; |
83 |
+$Conf{CgiDateFormatMMDD} = 2; |
84 |
|
85 |
# |
86 |
# If set, the complete list of hosts appears in the left navigation |
87 |
@@ -2248,7 +2252,7 @@ |
88 |
ClientTimeout => 1, |
89 |
MaxOldPerPCLogFiles => 1, |
90 |
CompressLevel => 1, |
91 |
- ClientNameAlias => 1, |
92 |
+ ClientNameAlias => 0, |
93 |
DumpPreUserCmd => 0, |
94 |
DumpPostUserCmd => 0, |
95 |
RestorePreUserCmd => 0, |
96 |
|
97 |
|
98 |
|
99 |
1.1 app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch |
100 |
|
101 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: 01-fix-configure.pl.patch |
105 |
=================================================================== |
106 |
--- configure.pl.orig 2010-07-31 20:52:58.000000000 +0300 |
107 |
+++ configure.pl 2010-09-03 22:09:46.437788435 +0300 |
108 |
@@ -158,7 +158,7 @@ |
109 |
# config file to get all the defaults. |
110 |
# |
111 |
my $ConfigPath = ""; |
112 |
-my $ConfigFileOK = 1; |
113 |
+my $ConfigFileOK = 0; |
114 |
while ( 1 ) { |
115 |
if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) { |
116 |
$ConfigPath = "/etc/BackupPC/config.pl"; |
117 |
@@ -213,7 +213,8 @@ |
118 |
$bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log" |
119 |
if ( $Conf{LogDir} eq '' ); |
120 |
} |
121 |
- $bpc->{ConfDir} = $Conf{ConfDir} = $confDir; |
122 |
+ # Disable this as it's not really neccessary for this ebuild |
123 |
+ # $bpc->{ConfDir} = $Conf{ConfDir} = $confDir; |
124 |
my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1); |
125 |
if ( $err eq "" ) { |
126 |
print <<EOF; |
127 |
@@ -726,7 +727,7 @@ |
128 |
if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) { |
129 |
$Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'"; |
130 |
} else { |
131 |
- $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'"; |
132 |
+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'"; |
133 |
} |
134 |
} |
135 |
|
136 |
|
137 |
|
138 |
|
139 |
1.1 app-backup/backuppc/files/3.2.0/02-fix-config.pl-formatting.patch |
140 |
|
141 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/02-fix-config.pl-formatting.patch?rev=1.1&view=markup |
142 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/02-fix-config.pl-formatting.patch?rev=1.1&content-type=text/plain |
143 |
|
144 |
Index: 02-fix-config.pl-formatting.patch |
145 |
=================================================================== |
146 |
--- conf/config.pl.dist 2010-09-03 23:08:05.795789517 +0300 |
147 |
+++ conf/config.pl 2010-09-03 23:08:37.513788393 +0300 |
148 |
@@ -87,7 +87,7 @@ |
149 |
# Default value prevents any access from group other, and prevents |
150 |
# group write. |
151 |
# |
152 |
-$Conf{UmaskMode} = 027; |
153 |
+$Conf{UmaskMode} = 27; |
154 |
|
155 |
# |
156 |
# Times at which we wake up, check all the PCs, and schedule necessary |
157 |
@@ -113,7 +113,31 @@ |
158 |
# you want BackupPC_nightly to run (eg: when you don't expect a lot |
159 |
# of regular backups to run). |
160 |
# |
161 |
-$Conf{WakeupSchedule} = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]; |
162 |
+$Conf{WakeupSchedule} = [ |
163 |
+ 1, |
164 |
+ 2, |
165 |
+ 3, |
166 |
+ 4, |
167 |
+ 5, |
168 |
+ 6, |
169 |
+ 7, |
170 |
+ 8, |
171 |
+ 9, |
172 |
+ 10, |
173 |
+ 11, |
174 |
+ 12, |
175 |
+ 13, |
176 |
+ 14, |
177 |
+ 15, |
178 |
+ 16, |
179 |
+ 17, |
180 |
+ 18, |
181 |
+ 19, |
182 |
+ 20, |
183 |
+ 21, |
184 |
+ 22, |
185 |
+ 23 |
186 |
+]; |
187 |
|
188 |
# |
189 |
# Maximum number of simultaneous backups to run. If there |
190 |
@@ -224,9 +248,9 @@ |
191 |
# Full path to various commands for archiving |
192 |
# |
193 |
$Conf{SplitPath} = ''; |
194 |
-$Conf{ParPath} = ''; |
195 |
-$Conf{CatPath} = ''; |
196 |
-$Conf{GzipPath} = ''; |
197 |
+$Conf{ParPath} = ''; |
198 |
+$Conf{CatPath} = ''; |
199 |
+$Conf{GzipPath} = ''; |
200 |
$Conf{Bzip2Path} = ''; |
201 |
|
202 |
# |
203 |
@@ -302,11 +326,11 @@ |
204 |
# a symbolic link to the new location, or mount the new BackupPC |
205 |
# store at the existing $Conf{TopDir} setting. |
206 |
# |
207 |
-$Conf{TopDir} = ''; |
208 |
-$Conf{ConfDir} = ''; |
209 |
-$Conf{LogDir} = ''; |
210 |
-$Conf{InstallDir} = ''; |
211 |
-$Conf{CgiDir} = ''; |
212 |
+$Conf{TopDir} = ''; |
213 |
+$Conf{ConfDir} = ''; |
214 |
+$Conf{LogDir} = ''; |
215 |
+$Conf{InstallDir} = ''; |
216 |
+$Conf{CgiDir} = ''; |
217 |
|
218 |
# |
219 |
# Whether BackupPC and the CGI script BackupPC_Admin verify that they |
220 |
@@ -316,7 +340,7 @@ |
221 |
# BackupPC might be accidently started as root or the wrong user, |
222 |
# or if the CGI script is not installed correctly. |
223 |
# |
224 |
-$Conf{BackupPCUserVerify} = 1; |
225 |
+$Conf{BackupPCUserVerify} = '1'; |
226 |
|
227 |
# |
228 |
# Maximum number of hardlinks supported by the $TopDir file system |
229 |
@@ -333,7 +357,7 @@ |
230 |
# Advanced option for asking BackupPC to load additional perl modules. |
231 |
# Can be a list (array ref) of module names to load at startup. |
232 |
# |
233 |
-$Conf{PerlModuleLoad} = undef; |
234 |
+$Conf{PerlModuleLoad} = undef; |
235 |
|
236 |
# |
237 |
# Path to init.d script and command to use that script to start the |
238 |
@@ -355,7 +379,7 @@ |
239 |
# needs to be a full path and you can't include shell syntax like |
240 |
# redirection and pipes; put that in a script if you need it. |
241 |
# |
242 |
-$Conf{ServerInitdPath} = ''; |
243 |
+$Conf{ServerInitdPath} = undef; |
244 |
$Conf{ServerInitdStartCmd} = ''; |
245 |
|
246 |
|
247 |
@@ -373,7 +397,7 @@ |
248 |
# time taken for the backup, plus the granularity of $Conf{WakeupSchedule} |
249 |
# will make the actual backup interval a bit longer. |
250 |
# |
251 |
-$Conf{FullPeriod} = 6.97; |
252 |
+$Conf{FullPeriod} = '6.97'; |
253 |
|
254 |
# |
255 |
# Minimum period in days between incremental backups (a user requested |
256 |
@@ -383,7 +407,7 @@ |
257 |
# time taken for the backup, plus the granularity of $Conf{WakeupSchedule} |
258 |
# will make the actual backup interval a bit longer. |
259 |
# |
260 |
-$Conf{IncrPeriod} = 0.97; |
261 |
+$Conf{IncrPeriod} = '0.97'; |
262 |
|
263 |
# |
264 |
# Number of full backups to keep. Must be >= 1. |
265 |
@@ -458,7 +482,9 @@ |
266 |
# $Conf{FullKeepCnt} = 4; |
267 |
# $Conf{FullKeepCnt} = [4]; |
268 |
# |
269 |
-$Conf{FullKeepCnt} = 1; |
270 |
+$Conf{FullKeepCnt} = [ |
271 |
+ 1 |
272 |
+]; |
273 |
|
274 |
# |
275 |
# Very old full backups are removed after $Conf{FullAgeMax} days. However, |
276 |
@@ -470,7 +496,7 @@ |
277 |
# full backups to exceed $Conf{FullAgeMax}. |
278 |
# |
279 |
$Conf{FullKeepCntMin} = 1; |
280 |
-$Conf{FullAgeMax} = 90; |
281 |
+$Conf{FullAgeMax} = 90; |
282 |
|
283 |
# |
284 |
# Number of incremental backups to keep. Must be >= 1. |
285 |
@@ -487,7 +513,7 @@ |
286 |
# matter how old they are. |
287 |
# |
288 |
$Conf{IncrKeepCntMin} = 1; |
289 |
-$Conf{IncrAgeMax} = 30; |
290 |
+$Conf{IncrAgeMax} = 30; |
291 |
|
292 |
# |
293 |
# Level of each incremental. "Level" follows the terminology |
294 |
@@ -565,7 +591,9 @@ |
295 |
# meaning each incremental backed up all the files that |
296 |
# changed since the last full. |
297 |
# |
298 |
-$Conf{IncrLevels} = [1]; |
299 |
+$Conf{IncrLevels} = [ |
300 |
+ 1 |
301 |
+]; |
302 |
|
303 |
# |
304 |
# Disable all full and incremental backups. These settings are |
305 |
@@ -631,7 +659,7 @@ |
306 |
# The default is off. You can turn this on or off at any |
307 |
# time without affecting existing backups. |
308 |
# |
309 |
-$Conf{IncrFill} = 0; |
310 |
+$Conf{IncrFill} = '0'; |
311 |
|
312 |
# |
313 |
# Number of restore logs to keep. BackupPC remembers information about |
314 |
@@ -683,7 +711,7 @@ |
315 |
# '*' => ['/myFiles', '/important'], # these are other shares |
316 |
# }; |
317 |
# |
318 |
-$Conf{BackupFilesOnly} = undef; |
319 |
+$Conf{BackupFilesOnly} = {}; |
320 |
|
321 |
# |
322 |
# List of directories or files to exclude from the backup. For Smb, |
323 |
@@ -739,7 +767,7 @@ |
324 |
# '*' => ['/junk', '/dont_back_this_up'], # these are for other shares |
325 |
# }; |
326 |
# |
327 |
-$Conf{BackupFilesExclude} = undef; |
328 |
+$Conf{BackupFilesExclude} = {}; |
329 |
|
330 |
# |
331 |
# PCs that are always or often on the network can be backed up after |
332 |
@@ -770,7 +798,7 @@ |
333 |
# to just set $Conf{WakeupSchedule} to a restricted schedule. |
334 |
# |
335 |
$Conf{BlackoutBadPingLimit} = 3; |
336 |
-$Conf{BlackoutGoodCnt} = 7; |
337 |
+$Conf{BlackoutGoodCnt} = 7; |
338 |
|
339 |
# |
340 |
# One or more blackout periods can be specified. If a client is |
341 |
@@ -813,11 +841,17 @@ |
342 |
# Saturday night. |
343 |
# |
344 |
$Conf{BlackoutPeriods} = [ |
345 |
- { |
346 |
- hourBegin => 7.0, |
347 |
- hourEnd => 19.5, |
348 |
- weekDays => [1, 2, 3, 4, 5], |
349 |
- }, |
350 |
+ { |
351 |
+ 'hourEnd' => '19.5', |
352 |
+ 'weekDays' => [ |
353 |
+ 1, |
354 |
+ 2, |
355 |
+ 3, |
356 |
+ 4, |
357 |
+ 5 |
358 |
+ ], |
359 |
+ 'hourBegin' => 7 |
360 |
+ } |
361 |
]; |
362 |
|
363 |
# |
364 |
@@ -826,7 +860,7 @@ |
365 |
# backed up. If you have shares that might be empty (and therefore an |
366 |
# empty backup is valid) you should set this flag to 0. |
367 |
# |
368 |
-$Conf{BackupZeroFilesIsFatal} = 1; |
369 |
+$Conf{BackupZeroFilesIsFatal} = '1'; |
370 |
|
371 |
########################################################################### |
372 |
# How to backup a client |
373 |
@@ -922,7 +956,9 @@ |
374 |
# |
375 |
# This setting only matters if $Conf{XferMethod} = 'smb'. |
376 |
# |
377 |
-$Conf{SmbShareName} = 'C$'; |
378 |
+$Conf{SmbShareName} = [ |
379 |
+ 'C$' |
380 |
+]; |
381 |
|
382 |
# |
383 |
# Smbclient share user name. This is passed to smbclient's -U argument. |
384 |
@@ -975,9 +1011,7 @@ |
385 |
# needs to be a full path and you can't include shell syntax like |
386 |
# redirection and pipes; put that in a script if you need it. |
387 |
# |
388 |
-$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName' |
389 |
- . ' $I_option -U $userName -E -N -d 1' |
390 |
- . ' -c tarmode\\ full -Tc$X_option - $fileList'; |
391 |
+$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\\ full -Tc$X_option - $fileList'; |
392 |
|
393 |
# |
394 |
# Command to run smbclient for an incremental dump. |
395 |
@@ -989,9 +1023,7 @@ |
396 |
# needs to be a full path and you can't include shell syntax like |
397 |
# redirection and pipes; put that in a script if you need it. |
398 |
# |
399 |
-$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName' |
400 |
- . ' $I_option -U $userName -E -N -d 1' |
401 |
- . ' -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList'; |
402 |
+$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList'; |
403 |
|
404 |
# |
405 |
# Command to run smbclient for a restore. |
406 |
@@ -1007,9 +1039,7 @@ |
407 |
# needs to be a full path and you can't include shell syntax like |
408 |
# redirection and pipes; put that in a script if you need it. |
409 |
# |
410 |
-$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName' |
411 |
- . ' $I_option -U $userName -E -N -d 1' |
412 |
- . ' -c tarmode\\ full -Tx -'; |
413 |
+$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\\ full -Tx -'; |
414 |
|
415 |
########################################################################### |
416 |
# Tar Configuration |
417 |
@@ -1044,7 +1074,9 @@ |
418 |
# |
419 |
# This setting only matters if $Conf{XferMethod} = 'tar'. |
420 |
# |
421 |
-$Conf{TarShareName} = '/'; |
422 |
+$Conf{TarShareName} = [ |
423 |
+ '/' |
424 |
+]; |
425 |
|
426 |
# |
427 |
# Full command to run tar on the client. GNU tar is required. You will |
428 |
@@ -1085,9 +1117,7 @@ |
429 |
# needs to be a full path and you can't include shell syntax like |
430 |
# redirection and pipes; put that in a script if you need it. |
431 |
# |
432 |
-$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host' |
433 |
- . ' env LC_ALL=C $tarPath -c -v -f - -C $shareName+' |
434 |
- . ' --totals'; |
435 |
+$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; |
436 |
|
437 |
# |
438 |
# Extra tar arguments for full backups. Several variables are substituted at |
439 |
@@ -1146,9 +1176,7 @@ |
440 |
# needs to be a full path and you can't include shell syntax like |
441 |
# redirection and pipes; put that in a script if you need it. |
442 |
# |
443 |
-$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host' |
444 |
- . ' env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner' |
445 |
- . ' -v -f - -C $shareName+'; |
446 |
+$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName+'; |
447 |
|
448 |
# |
449 |
# Full path for tar on the client. Security caution: normal users should not |
450 |
@@ -1220,7 +1248,9 @@ |
451 |
# |
452 |
# $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot']; |
453 |
# |
454 |
-$Conf{RsyncShareName} = '/'; |
455 |
+$Conf{RsyncShareName} = [ |
456 |
+ '/' |
457 |
+]; |
458 |
|
459 |
# |
460 |
# Rsync daemon port on the client, for $Conf{XferMethod} = "rsyncd". |
461 |
@@ -1249,7 +1279,7 @@ |
462 |
# connect to an rsyncd on the client that is not password protected. |
463 |
# Turn off at your own risk. |
464 |
# |
465 |
-$Conf{RsyncdAuthRequired} = 1; |
466 |
+$Conf{RsyncdAuthRequired} = '1'; |
467 |
|
468 |
# |
469 |
# When rsync checksum caching is enabled (by adding the |
470 |
@@ -1272,35 +1302,23 @@ |
471 |
# |
472 |
# This setting has no effect unless checksum caching is turned on. |
473 |
# |
474 |
-$Conf{RsyncCsumCacheVerifyProb} = 0.01; |
475 |
+$Conf{RsyncCsumCacheVerifyProb} = '0.01'; |
476 |
|
477 |
# |
478 |
# Arguments to rsync for backup. Do not edit the first set unless you |
479 |
# have a thorough understanding of how File::RsyncP works. |
480 |
# |
481 |
$Conf{RsyncArgs} = [ |
482 |
- # |
483 |
- # Do not edit these! |
484 |
- # |
485 |
- '--numeric-ids', |
486 |
- '--perms', |
487 |
- '--owner', |
488 |
- '--group', |
489 |
- '-D', |
490 |
- '--links', |
491 |
- '--hard-links', |
492 |
- '--times', |
493 |
- '--block-size=2048', |
494 |
- '--recursive', |
495 |
- |
496 |
- # |
497 |
- # Rsync >= 2.6.3 supports the --checksum-seed option |
498 |
- # which allows rsync checksum caching on the server. |
499 |
- # Uncomment this to enable rsync checksum caching if |
500 |
- # you have a recent client rsync version and you want |
501 |
- # to enable checksum caching. |
502 |
- # |
503 |
- #'--checksum-seed=32761', |
504 |
+ '--numeric-ids', |
505 |
+ '--perms', |
506 |
+ '--owner', |
507 |
+ '--group', |
508 |
+ '-D', |
509 |
+ '--links', |
510 |
+ '--hard-links', |
511 |
+ '--times', |
512 |
+ '--block-size=2048', |
513 |
+ '--recursive', |
514 |
]; |
515 |
|
516 |
# |
517 |
@@ -1355,34 +1373,18 @@ |
518 |
# Note: $Conf{RsyncArgsExtra} doesn't apply to $Conf{RsyncRestoreArgs}. |
519 |
# |
520 |
$Conf{RsyncRestoreArgs} = [ |
521 |
- # |
522 |
- # Do not edit these! |
523 |
- # |
524 |
- '--numeric-ids', |
525 |
- '--perms', |
526 |
- '--owner', |
527 |
- '--group', |
528 |
- '-D', |
529 |
- '--links', |
530 |
- '--hard-links', |
531 |
- '--times', |
532 |
- '--block-size=2048', |
533 |
- '--relative', |
534 |
- '--ignore-times', |
535 |
- '--recursive', |
536 |
- |
537 |
- # |
538 |
- # Rsync >= 2.6.3 supports the --checksum-seed option |
539 |
- # which allows rsync checksum caching on the server. |
540 |
- # Uncomment this to enable rsync checksum caching if |
541 |
- # you have a recent client rsync version and you want |
542 |
- # to enable checksum caching. |
543 |
- # |
544 |
- #'--checksum-seed=32761', |
545 |
- |
546 |
- # |
547 |
- # Add additional arguments here |
548 |
- # |
549 |
+ '--numeric-ids', |
550 |
+ '--perms', |
551 |
+ '--owner', |
552 |
+ '--group', |
553 |
+ '-D', |
554 |
+ '--links', |
555 |
+ '--hard-links', |
556 |
+ '--times', |
557 |
+ '--block-size=2048', |
558 |
+ '--relative', |
559 |
+ '--ignore-times', |
560 |
+ '--recursive', |
561 |
]; |
562 |
|
563 |
########################################################################### |
564 |
@@ -1515,7 +1517,7 @@ |
565 |
# |
566 |
# Set to 0 to disable this feature. |
567 |
# |
568 |
-$Conf{ArchivePar} = 0; |
569 |
+$Conf{ArchivePar} = '0'; |
570 |
|
571 |
# |
572 |
# Archive Size Split |
573 |
@@ -1551,9 +1553,7 @@ |
574 |
# needs to be a full path and you can't include shell syntax like |
575 |
# redirection and pipes; put that in a script if you need it. |
576 |
# |
577 |
-$Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost' |
578 |
- . ' $tarCreatePath $splitpath $parpath $host $backupnumber' |
579 |
- . ' $compression $compext $splitsize $archiveloc $parfile *'; |
580 |
+$Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost $tarCreatePath $splitpath $parpath $host $backupnumber $compression $compext $splitsize $archiveloc $parfile *'; |
581 |
|
582 |
# |
583 |
# Full path for ssh. Security caution: normal users should not |
584 |
@@ -1625,7 +1625,7 @@ |
585 |
# setting this flag is a great way to verify that the machines have |
586 |
# their netbios name set correctly before turning on DCHP. |
587 |
# |
588 |
-$Conf{FixedIPNetBiosNameCheck} = 0; |
589 |
+$Conf{FixedIPNetBiosNameCheck} = '0'; |
590 |
|
591 |
# |
592 |
# Full path to the ping command. Security caution: normal users |
593 |
@@ -1802,13 +1802,13 @@ |
594 |
# needs to be a full path and you can't include shell syntax like |
595 |
# redirection and pipes; put that in a script if you need it. |
596 |
# |
597 |
-$Conf{DumpPreUserCmd} = undef; |
598 |
-$Conf{DumpPostUserCmd} = undef; |
599 |
-$Conf{DumpPreShareCmd} = undef; |
600 |
-$Conf{DumpPostShareCmd} = undef; |
601 |
-$Conf{RestorePreUserCmd} = undef; |
602 |
+$Conf{DumpPreUserCmd} = undef; |
603 |
+$Conf{DumpPostUserCmd} = undef; |
604 |
+$Conf{DumpPreShareCmd} = undef; |
605 |
+$Conf{DumpPostShareCmd} = undef; |
606 |
+$Conf{RestorePreUserCmd} = undef; |
607 |
$Conf{RestorePostUserCmd} = undef; |
608 |
-$Conf{ArchivePreUserCmd} = undef; |
609 |
+$Conf{ArchivePreUserCmd} = undef; |
610 |
$Conf{ArchivePostUserCmd} = undef; |
611 |
|
612 |
# |
613 |
@@ -1832,7 +1832,7 @@ |
614 |
# that snapshots or dumps a database which fails because |
615 |
# of some database error. |
616 |
# |
617 |
-$Conf{UserCmdCheckStatus} = 0; |
618 |
+$Conf{UserCmdCheckStatus} = '0'; |
619 |
|
620 |
# |
621 |
# Override the client's host name. This allows multiple clients |
622 |
@@ -1870,7 +1870,7 @@ |
623 |
# rounded up (ie: 2.5 means a user will never receive email more |
624 |
# than once every 3 days). |
625 |
# |
626 |
-$Conf{EMailNotifyMinDays} = 2.5; |
627 |
+$Conf{EMailNotifyMinDays} = '2.5'; |
628 |
|
629 |
# |
630 |
# Name to use as the "from" name for email. Depending upon your mail |
631 |
@@ -1925,7 +1925,7 @@ |
632 |
# When there have been no backups in this number of days the user |
633 |
# is sent an email. |
634 |
# |
635 |
-$Conf{EMailNotifyOldBackupDays} = 7.0; |
636 |
+$Conf{EMailNotifyOldBackupDays} = 7; |
637 |
|
638 |
# |
639 |
# This subject and message is sent to a user if their PC has not recently |
640 |
@@ -1952,7 +1952,7 @@ |
641 |
# How old the most recent backup of Outlook files has to be before |
642 |
# notifying user. |
643 |
# |
644 |
-$Conf{EMailNotifyOldOutlookDays} = 5.0; |
645 |
+$Conf{EMailNotifyOldOutlookDays} = 5; |
646 |
|
647 |
# |
648 |
# This subject and message is sent to a user if their Outlook files have |
649 |
@@ -1980,10 +1980,9 @@ |
650 |
# Additional email headers. This sets to charset to |
651 |
# utf8. |
652 |
# |
653 |
-$Conf{EMailHeaders} = <<EOF; |
654 |
-MIME-Version: 1.0 |
655 |
+$Conf{EMailHeaders} = 'MIME-Version: 1.0 |
656 |
Content-Type: text/plain; charset="utf-8" |
657 |
-EOF |
658 |
+'; |
659 |
|
660 |
########################################################################### |
661 |
# CGI user interface configuration settings |
662 |
@@ -2056,7 +2055,7 @@ |
663 |
# be rendered as a link to http://myhost/users/craig.html. |
664 |
# |
665 |
$Conf{CgiUserHomePageCheck} = ''; |
666 |
-$Conf{CgiUserUrlCreate} = 'mailto:%s'; |
667 |
+$Conf{CgiUserUrlCreate} = 'mailto:%s'; |
668 |
|
669 |
# |
670 |
# Date display format for CGI interface. A value of 1 uses US-style |
671 |
@@ -2071,12 +2070,12 @@ |
672 |
# the user is listed in the host file (as either the user or in moreUsers) |
673 |
# are displayed. |
674 |
# |
675 |
-$Conf{CgiNavBarAdminAllHosts} = 1; |
676 |
+$Conf{CgiNavBarAdminAllHosts} = '1'; |
677 |
|
678 |
# |
679 |
# Enable/disable the search box in the navigation bar. |
680 |
# |
681 |
-$Conf{CgiSearchBoxEnable} = 1; |
682 |
+$Conf{CgiSearchBoxEnable} = '1'; |
683 |
|
684 |
# |
685 |
# Additional navigation bar links. These appear for both regular users |
686 |
@@ -2086,31 +2085,34 @@ |
687 |
# just literally displaying name. |
688 |
# |
689 |
$Conf{CgiNavBarLinks} = [ |
690 |
- { |
691 |
- link => "?action=view&type=docs", |
692 |
- lname => "Documentation", # actually displays $Lang->{Documentation} |
693 |
- }, |
694 |
- { |
695 |
- link => "http://backuppc.wiki.sourceforge.net", |
696 |
- name => "Wiki", # displays literal "Wiki" |
697 |
- }, |
698 |
- { |
699 |
- link => "http://backuppc.sourceforge.net", |
700 |
- name => "SourceForge", # displays literal "SourceForge" |
701 |
- }, |
702 |
+ { |
703 |
+ 'link' => '?action=view&type=docs', |
704 |
+ 'lname' => 'Documentation', |
705 |
+ 'name' => undef |
706 |
+ }, |
707 |
+ { |
708 |
+ 'link' => 'http://backuppc.wiki.sourceforge.net', |
709 |
+ 'lname' => undef, |
710 |
+ 'name' => 'Wiki' |
711 |
+ }, |
712 |
+ { |
713 |
+ 'link' => 'http://backuppc.sourceforge.net', |
714 |
+ 'lname' => undef, |
715 |
+ 'name' => 'SourceForge' |
716 |
+ } |
717 |
]; |
718 |
|
719 |
# |
720 |
# Hilight colors based on status that are used in the PC summary page. |
721 |
# |
722 |
$Conf{CgiStatusHilightColor} = { |
723 |
- Reason_backup_failed => '#ffcccc', |
724 |
- Reason_backup_done => '#ccffcc', |
725 |
- Reason_no_ping => '#ffff99', |
726 |
- Reason_backup_canceled_by_user => '#ff9900', |
727 |
- Status_backup_in_progress => '#66cc99', |
728 |
- Disabled_OnlyManualBackups => '#d1d1d1', |
729 |
- Disabled_AllBackupsDisabled => '#d1d1d1', |
730 |
+ 'Reason_backup_failed' => '#ffcccc', |
731 |
+ 'Reason_backup_done' => '#ccffcc', |
732 |
+ 'Reason_backup_canceled_by_user' => '#ff9900', |
733 |
+ 'Reason_no_ping' => '#ffff99', |
734 |
+ 'Disabled_OnlyManualBackups' => '#d1d1d1', |
735 |
+ 'Status_backup_in_progress' => '#66cc99', |
736 |
+ 'Disabled_AllBackupsDisabled' => '#d1d1d1' |
737 |
}; |
738 |
|
739 |
# |
740 |
@@ -2138,7 +2140,7 @@ |
741 |
# 'pl' => 'text/plain', |
742 |
# }; |
743 |
# |
744 |
-$Conf{CgiExt2ContentType} = { }; |
745 |
+$Conf{CgiExt2ContentType} = {}; |
746 |
|
747 |
# |
748 |
# URL (without the leading http://host) for BackupPC's image directory. |
749 |
@@ -2163,7 +2165,7 @@ |
750 |
# |
751 |
# Whether the user is allowed to edit their per-PC config. |
752 |
# |
753 |
-$Conf{CgiUserConfigEditEnable} = 1; |
754 |
+$Conf{CgiUserConfigEditEnable} = '1'; |
755 |
|
756 |
# |
757 |
# Which per-host config variables a non-admin user is allowed |
758 |
@@ -2177,96 +2179,96 @@ |
759 |
# sorts of bad things. |
760 |
# |
761 |
$Conf{CgiUserConfigEdit} = { |
762 |
- FullPeriod => 1, |
763 |
- IncrPeriod => 1, |
764 |
- FullKeepCnt => 1, |
765 |
- FullKeepCntMin => 1, |
766 |
- FullAgeMax => 1, |
767 |
- IncrKeepCnt => 1, |
768 |
- IncrKeepCntMin => 1, |
769 |
- IncrAgeMax => 1, |
770 |
- IncrLevels => 1, |
771 |
- IncrFill => 1, |
772 |
- PartialAgeMax => 1, |
773 |
- RestoreInfoKeepCnt => 1, |
774 |
- ArchiveInfoKeepCnt => 1, |
775 |
- BackupFilesOnly => 1, |
776 |
- BackupFilesExclude => 1, |
777 |
- BackupsDisable => 1, |
778 |
- BlackoutBadPingLimit => 1, |
779 |
- BlackoutGoodCnt => 1, |
780 |
- BlackoutPeriods => 1, |
781 |
- BackupZeroFilesIsFatal => 1, |
782 |
- ClientCharset => 1, |
783 |
- ClientCharsetLegacy => 1, |
784 |
- XferMethod => 1, |
785 |
- XferLogLevel => 1, |
786 |
- SmbShareName => 1, |
787 |
- SmbShareUserName => 1, |
788 |
- SmbSharePasswd => 1, |
789 |
- SmbClientFullCmd => 0, |
790 |
- SmbClientIncrCmd => 0, |
791 |
- SmbClientRestoreCmd => 0, |
792 |
- TarShareName => 1, |
793 |
- TarFullArgs => 1, |
794 |
- TarIncrArgs => 1, |
795 |
- TarClientCmd => 0, |
796 |
- TarClientRestoreCmd => 0, |
797 |
- TarClientPath => 0, |
798 |
- RsyncShareName => 1, |
799 |
- RsyncdClientPort => 1, |
800 |
- RsyncdPasswd => 1, |
801 |
- RsyncdUserName => 1, |
802 |
- RsyncdAuthRequired => 1, |
803 |
- RsyncCsumCacheVerifyProb => 1, |
804 |
- RsyncArgs => 1, |
805 |
- RsyncArgsExtra => 1, |
806 |
- RsyncRestoreArgs => 1, |
807 |
- RsyncClientCmd => 0, |
808 |
- RsyncClientRestoreCmd => 0, |
809 |
- RsyncClientPath => 0, |
810 |
- FtpShareName => 1, |
811 |
- FtpUserName => 1, |
812 |
- FtpPasswd => 1, |
813 |
- FtpBlockSize => 1, |
814 |
- FtpPort => 1, |
815 |
- FtpTimeout => 1, |
816 |
- FtpFollowSymlinks => 1, |
817 |
- FtpRestoreEnabled => 1, |
818 |
- ArchiveDest => 1, |
819 |
- ArchiveComp => 1, |
820 |
- ArchivePar => 1, |
821 |
- ArchiveSplit => 1, |
822 |
- ArchiveClientCmd => 0, |
823 |
- FixedIPNetBiosNameCheck => 1, |
824 |
- NmbLookupCmd => 0, |
825 |
- NmbLookupFindHostCmd => 0, |
826 |
- PingMaxMsec => 1, |
827 |
- PingCmd => 0, |
828 |
- ClientTimeout => 1, |
829 |
- MaxOldPerPCLogFiles => 1, |
830 |
- CompressLevel => 1, |
831 |
- ClientNameAlias => 1, |
832 |
- DumpPreUserCmd => 0, |
833 |
- DumpPostUserCmd => 0, |
834 |
- RestorePreUserCmd => 0, |
835 |
- RestorePostUserCmd => 0, |
836 |
- ArchivePreUserCmd => 0, |
837 |
- ArchivePostUserCmd => 0, |
838 |
- DumpPostShareCmd => 0, |
839 |
- DumpPreShareCmd => 0, |
840 |
- UserCmdCheckStatus => 0, |
841 |
- EMailNotifyMinDays => 1, |
842 |
- EMailFromUserName => 1, |
843 |
- EMailAdminUserName => 1, |
844 |
- EMailUserDestDomain => 1, |
845 |
- EMailNoBackupEverSubj => 1, |
846 |
- EMailNoBackupEverMesg => 1, |
847 |
- EMailNotifyOldBackupDays => 1, |
848 |
- EMailNoBackupRecentSubj => 1, |
849 |
- EMailNoBackupRecentMesg => 1, |
850 |
- EMailNotifyOldOutlookDays => 1, |
851 |
- EMailOutlookBackupSubj => 1, |
852 |
- EMailOutlookBackupMesg => 1, |
853 |
- EMailHeaders => 1, |
854 |
+ FullPeriod => 1, |
855 |
+ IncrPeriod => 1, |
856 |
+ FullKeepCnt => 1, |
857 |
+ FullKeepCntMin => 1, |
858 |
+ FullAgeMax => 1, |
859 |
+ IncrKeepCnt => 1, |
860 |
+ IncrKeepCntMin => 1, |
861 |
+ IncrAgeMax => 1, |
862 |
+ IncrLevels => 1, |
863 |
+ IncrFill => 1, |
864 |
+ PartialAgeMax => 1, |
865 |
+ RestoreInfoKeepCnt => 1, |
866 |
+ ArchiveInfoKeepCnt => 1, |
867 |
+ BackupFilesOnly => 1, |
868 |
+ BackupFilesExclude => 1, |
869 |
+ BackupsDisable => 1, |
870 |
+ BlackoutBadPingLimit => 1, |
871 |
+ BlackoutGoodCnt => 1, |
872 |
+ BlackoutPeriods => 1, |
873 |
+ BackupZeroFilesIsFatal => 1, |
874 |
+ ClientCharset => 1, |
875 |
+ ClientCharsetLegacy => 1, |
876 |
+ XferMethod => 1, |
877 |
+ XferLogLevel => 1, |
878 |
+ SmbShareName => 1, |
879 |
+ SmbShareUserName => 1, |
880 |
+ SmbSharePasswd => 1, |
881 |
+ SmbClientFullCmd => 0, |
882 |
+ SmbClientIncrCmd => 0, |
883 |
+ SmbClientRestoreCmd => 0, |
884 |
+ TarShareName => 1, |
885 |
+ TarFullArgs => 1, |
886 |
+ TarIncrArgs => 1, |
887 |
+ TarClientCmd => 0, |
888 |
+ TarClientRestoreCmd => 0, |
889 |
+ TarClientPath => 0, |
890 |
+ RsyncShareName => 1, |
891 |
+ RsyncdClientPort => 1, |
892 |
+ RsyncdPasswd => 1, |
893 |
+ RsyncdUserName => 1, |
894 |
+ RsyncdAuthRequired => 1, |
895 |
+ RsyncCsumCacheVerifyProb => 1, |
896 |
+ RsyncArgs => 1, |
897 |
+ RsyncArgsExtra => 1, |
898 |
+ RsyncRestoreArgs => 1, |
899 |
+ RsyncClientCmd => 0, |
900 |
+ RsyncClientRestoreCmd => 0, |
901 |
+ RsyncClientPath => 0, |
902 |
+ FtpShareName => 1, |
903 |
+ FtpUserName => 1, |
904 |
+ FtpPasswd => 1, |
905 |
+ FtpBlockSize => 1, |
906 |
+ FtpPort => 1, |
907 |
+ FtpTimeout => 1, |
908 |
+ FtpFollowSymlinks => 1, |
909 |
+ FtpRestoreEnabled => 1, |
910 |
+ ArchiveDest => 1, |
911 |
+ ArchiveComp => 1, |
912 |
+ ArchivePar => 1, |
913 |
+ ArchiveSplit => 1, |
914 |
+ ArchiveClientCmd => 0, |
915 |
+ FixedIPNetBiosNameCheck => 1, |
916 |
+ NmbLookupCmd => 0, |
917 |
+ NmbLookupFindHostCmd => 0, |
918 |
+ PingMaxMsec => 1, |
919 |
+ PingCmd => 0, |
920 |
+ ClientTimeout => 1, |
921 |
+ MaxOldPerPCLogFiles => 1, |
922 |
+ CompressLevel => 1, |
923 |
+ ClientNameAlias => 1, |
924 |
+ DumpPreUserCmd => 0, |
925 |
+ DumpPostUserCmd => 0, |
926 |
+ RestorePreUserCmd => 0, |
927 |
+ RestorePostUserCmd => 0, |
928 |
+ ArchivePreUserCmd => 0, |
929 |
+ ArchivePostUserCmd => 0, |
930 |
+ DumpPostShareCmd => 0, |
931 |
+ DumpPreShareCmd => 0, |
932 |
+ UserCmdCheckStatus => 0, |
933 |
+ EMailNotifyMinDays => 1, |
934 |
+ EMailFromUserName => 1, |
935 |
+ EMailAdminUserName => 1, |
936 |
+ EMailUserDestDomain => 1, |
937 |
+ EMailNoBackupEverSubj => 1, |
938 |
+ EMailNoBackupEverMesg => 1, |
939 |
+ EMailNotifyOldBackupDays => 1, |
940 |
+ EMailNoBackupRecentSubj => 1, |
941 |
+ EMailNoBackupRecentMesg => 1, |
942 |
+ EMailNotifyOldOutlookDays => 1, |
943 |
+ EMailOutlookBackupSubj => 1, |
944 |
+ EMailOutlookBackupMesg => 1, |
945 |
+ EMailHeaders => 1, |
946 |
}; |
947 |
|
948 |
|
949 |
|
950 |
1.1 app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch |
951 |
|
952 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch?rev=1.1&view=markup |
953 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch?rev=1.1&content-type=text/plain |
954 |
|
955 |
Index: 04-add-docdir-marker.patch |
956 |
=================================================================== |
957 |
--- lib/BackupPC/CGI/View.pm.orig 2009-09-30 19:08:34.353577546 +0300 |
958 |
+++ lib/BackupPC/CGI/View.pm 2009-09-30 19:16:01.982412712 +0300 |
959 |
@@ -86,7 +86,7 @@ |
960 |
$file = $bpc->ConfDir() . "/hosts"; |
961 |
$linkHosts = 1; |
962 |
} elsif ( $type eq "docs" ) { |
963 |
- $file = $bpc->InstallDir() . "/doc/BackupPC.html"; |
964 |
+ $file = "__DOCDIR__/BackupPC.html"; |
965 |
} elsif ( $host ne "" ) { |
966 |
if ( !defined($In{num}) ) { |
967 |
# get the latest LOG file |