Lines 87-93
Link Here
|
87 |
# Default value prevents any access from group other, and prevents |
87 |
# Default value prevents any access from group other, and prevents |
88 |
# group write. |
88 |
# group write. |
89 |
# |
89 |
# |
90 |
$Conf{UmaskMode} = 027; |
90 |
$Conf{UmaskMode} = 27; |
91 |
|
91 |
|
92 |
# |
92 |
# |
93 |
# Times at which we wake up, check all the PCs, and schedule necessary |
93 |
# Times at which we wake up, check all the PCs, and schedule necessary |
Lines 113-119
Link Here
|
113 |
# you want BackupPC_nightly to run (eg: when you don't expect a lot |
113 |
# you want BackupPC_nightly to run (eg: when you don't expect a lot |
114 |
# of regular backups to run). |
114 |
# of regular backups to run). |
115 |
# |
115 |
# |
116 |
$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]; |
116 |
$Conf{WakeupSchedule} = [ |
|
|
117 |
1, |
118 |
2, |
119 |
3, |
120 |
4, |
121 |
5, |
122 |
6, |
123 |
7, |
124 |
8, |
125 |
9, |
126 |
10, |
127 |
11, |
128 |
12, |
129 |
13, |
130 |
14, |
131 |
15, |
132 |
16, |
133 |
17, |
134 |
18, |
135 |
19, |
136 |
20, |
137 |
21, |
138 |
22, |
139 |
23 |
140 |
]; |
117 |
|
141 |
|
118 |
# |
142 |
# |
119 |
# Maximum number of simultaneous backups to run. If there |
143 |
# Maximum number of simultaneous backups to run. If there |
Lines 224-232
Link Here
|
224 |
# Full path to various commands for archiving |
248 |
# Full path to various commands for archiving |
225 |
# |
249 |
# |
226 |
$Conf{SplitPath} = ''; |
250 |
$Conf{SplitPath} = ''; |
227 |
$Conf{ParPath} = ''; |
251 |
$Conf{ParPath} = ''; |
228 |
$Conf{CatPath} = ''; |
252 |
$Conf{CatPath} = ''; |
229 |
$Conf{GzipPath} = ''; |
253 |
$Conf{GzipPath} = ''; |
230 |
$Conf{Bzip2Path} = ''; |
254 |
$Conf{Bzip2Path} = ''; |
231 |
|
255 |
|
232 |
# |
256 |
# |
Lines 302-312
Link Here
|
302 |
# a symbolic link to the new location, or mount the new BackupPC |
326 |
# a symbolic link to the new location, or mount the new BackupPC |
303 |
# store at the existing $Conf{TopDir} setting. |
327 |
# store at the existing $Conf{TopDir} setting. |
304 |
# |
328 |
# |
305 |
$Conf{TopDir} = ''; |
329 |
$Conf{TopDir} = ''; |
306 |
$Conf{ConfDir} = ''; |
330 |
$Conf{ConfDir} = ''; |
307 |
$Conf{LogDir} = ''; |
331 |
$Conf{LogDir} = ''; |
308 |
$Conf{InstallDir} = ''; |
332 |
$Conf{InstallDir} = ''; |
309 |
$Conf{CgiDir} = ''; |
333 |
$Conf{CgiDir} = ''; |
310 |
|
334 |
|
311 |
# |
335 |
# |
312 |
# Whether BackupPC and the CGI script BackupPC_Admin verify that they |
336 |
# Whether BackupPC and the CGI script BackupPC_Admin verify that they |
Lines 316-322
Link Here
|
316 |
# BackupPC might be accidently started as root or the wrong user, |
340 |
# BackupPC might be accidently started as root or the wrong user, |
317 |
# or if the CGI script is not installed correctly. |
341 |
# or if the CGI script is not installed correctly. |
318 |
# |
342 |
# |
319 |
$Conf{BackupPCUserVerify} = 1; |
343 |
$Conf{BackupPCUserVerify} = '1'; |
320 |
|
344 |
|
321 |
# |
345 |
# |
322 |
# Maximum number of hardlinks supported by the $TopDir file system |
346 |
# Maximum number of hardlinks supported by the $TopDir file system |
Lines 333-339
Link Here
|
333 |
# Advanced option for asking BackupPC to load additional perl modules. |
357 |
# Advanced option for asking BackupPC to load additional perl modules. |
334 |
# Can be a list (array ref) of module names to load at startup. |
358 |
# Can be a list (array ref) of module names to load at startup. |
335 |
# |
359 |
# |
336 |
$Conf{PerlModuleLoad} = undef; |
360 |
$Conf{PerlModuleLoad} = undef; |
337 |
|
361 |
|
338 |
# |
362 |
# |
339 |
# Path to init.d script and command to use that script to start the |
363 |
# Path to init.d script and command to use that script to start the |
Lines 355-361
Link Here
|
355 |
# needs to be a full path and you can't include shell syntax like |
379 |
# needs to be a full path and you can't include shell syntax like |
356 |
# redirection and pipes; put that in a script if you need it. |
380 |
# redirection and pipes; put that in a script if you need it. |
357 |
# |
381 |
# |
358 |
$Conf{ServerInitdPath} = ''; |
382 |
$Conf{ServerInitdPath} = undef; |
359 |
$Conf{ServerInitdStartCmd} = ''; |
383 |
$Conf{ServerInitdStartCmd} = ''; |
360 |
|
384 |
|
361 |
|
385 |
|
Lines 373-379
Link Here
|
373 |
# time taken for the backup, plus the granularity of $Conf{WakeupSchedule} |
397 |
# time taken for the backup, plus the granularity of $Conf{WakeupSchedule} |
374 |
# will make the actual backup interval a bit longer. |
398 |
# will make the actual backup interval a bit longer. |
375 |
# |
399 |
# |
376 |
$Conf{FullPeriod} = 6.97; |
400 |
$Conf{FullPeriod} = '6.97'; |
377 |
|
401 |
|
378 |
# |
402 |
# |
379 |
# Minimum period in days between incremental backups (a user requested |
403 |
# Minimum period in days between incremental backups (a user requested |
Lines 383-389
Link Here
|
383 |
# time taken for the backup, plus the granularity of $Conf{WakeupSchedule} |
407 |
# time taken for the backup, plus the granularity of $Conf{WakeupSchedule} |
384 |
# will make the actual backup interval a bit longer. |
408 |
# will make the actual backup interval a bit longer. |
385 |
# |
409 |
# |
386 |
$Conf{IncrPeriod} = 0.97; |
410 |
$Conf{IncrPeriod} = '0.97'; |
387 |
|
411 |
|
388 |
# |
412 |
# |
389 |
# Number of full backups to keep. Must be >= 1. |
413 |
# Number of full backups to keep. Must be >= 1. |
Lines 458-464
Link Here
|
458 |
# $Conf{FullKeepCnt} = 4; |
482 |
# $Conf{FullKeepCnt} = 4; |
459 |
# $Conf{FullKeepCnt} = [4]; |
483 |
# $Conf{FullKeepCnt} = [4]; |
460 |
# |
484 |
# |
461 |
$Conf{FullKeepCnt} = 1; |
485 |
$Conf{FullKeepCnt} = [ |
|
|
486 |
1 |
487 |
]; |
462 |
|
488 |
|
463 |
# |
489 |
# |
464 |
# Very old full backups are removed after $Conf{FullAgeMax} days. However, |
490 |
# Very old full backups are removed after $Conf{FullAgeMax} days. However, |
Lines 470-476
Link Here
|
470 |
# full backups to exceed $Conf{FullAgeMax}. |
496 |
# full backups to exceed $Conf{FullAgeMax}. |
471 |
# |
497 |
# |
472 |
$Conf{FullKeepCntMin} = 1; |
498 |
$Conf{FullKeepCntMin} = 1; |
473 |
$Conf{FullAgeMax} = 90; |
499 |
$Conf{FullAgeMax} = 90; |
474 |
|
500 |
|
475 |
# |
501 |
# |
476 |
# Number of incremental backups to keep. Must be >= 1. |
502 |
# Number of incremental backups to keep. Must be >= 1. |
Lines 487-493
Link Here
|
487 |
# matter how old they are. |
513 |
# matter how old they are. |
488 |
# |
514 |
# |
489 |
$Conf{IncrKeepCntMin} = 1; |
515 |
$Conf{IncrKeepCntMin} = 1; |
490 |
$Conf{IncrAgeMax} = 30; |
516 |
$Conf{IncrAgeMax} = 30; |
491 |
|
517 |
|
492 |
# |
518 |
# |
493 |
# Level of each incremental. "Level" follows the terminology |
519 |
# Level of each incremental. "Level" follows the terminology |
Lines 565-571
Link Here
|
565 |
# meaning each incremental backed up all the files that |
591 |
# meaning each incremental backed up all the files that |
566 |
# changed since the last full. |
592 |
# changed since the last full. |
567 |
# |
593 |
# |
568 |
$Conf{IncrLevels} = [1]; |
594 |
$Conf{IncrLevels} = [ |
|
|
595 |
1 |
596 |
]; |
569 |
|
597 |
|
570 |
# |
598 |
# |
571 |
# Disable all full and incremental backups. These settings are |
599 |
# Disable all full and incremental backups. These settings are |
Lines 631-637
Link Here
|
631 |
# The default is off. You can turn this on or off at any |
659 |
# The default is off. You can turn this on or off at any |
632 |
# time without affecting existing backups. |
660 |
# time without affecting existing backups. |
633 |
# |
661 |
# |
634 |
$Conf{IncrFill} = 0; |
662 |
$Conf{IncrFill} = '0'; |
635 |
|
663 |
|
636 |
# |
664 |
# |
637 |
# Number of restore logs to keep. BackupPC remembers information about |
665 |
# Number of restore logs to keep. BackupPC remembers information about |
Lines 683-689
Link Here
|
683 |
# '*' => ['/myFiles', '/important'], # these are other shares |
711 |
# '*' => ['/myFiles', '/important'], # these are other shares |
684 |
# }; |
712 |
# }; |
685 |
# |
713 |
# |
686 |
$Conf{BackupFilesOnly} = undef; |
714 |
$Conf{BackupFilesOnly} = {}; |
687 |
|
715 |
|
688 |
# |
716 |
# |
689 |
# List of directories or files to exclude from the backup. For Smb, |
717 |
# List of directories or files to exclude from the backup. For Smb, |
Lines 739-745
Link Here
|
739 |
# '*' => ['/junk', '/dont_back_this_up'], # these are for other shares |
767 |
# '*' => ['/junk', '/dont_back_this_up'], # these are for other shares |
740 |
# }; |
768 |
# }; |
741 |
# |
769 |
# |
742 |
$Conf{BackupFilesExclude} = undef; |
770 |
$Conf{BackupFilesExclude} = {}; |
743 |
|
771 |
|
744 |
# |
772 |
# |
745 |
# PCs that are always or often on the network can be backed up after |
773 |
# PCs that are always or often on the network can be backed up after |
Lines 770-776
Link Here
|
770 |
# to just set $Conf{WakeupSchedule} to a restricted schedule. |
798 |
# to just set $Conf{WakeupSchedule} to a restricted schedule. |
771 |
# |
799 |
# |
772 |
$Conf{BlackoutBadPingLimit} = 3; |
800 |
$Conf{BlackoutBadPingLimit} = 3; |
773 |
$Conf{BlackoutGoodCnt} = 7; |
801 |
$Conf{BlackoutGoodCnt} = 7; |
774 |
|
802 |
|
775 |
# |
803 |
# |
776 |
# One or more blackout periods can be specified. If a client is |
804 |
# One or more blackout periods can be specified. If a client is |
Lines 813-823
Link Here
|
813 |
# Saturday night. |
841 |
# Saturday night. |
814 |
# |
842 |
# |
815 |
$Conf{BlackoutPeriods} = [ |
843 |
$Conf{BlackoutPeriods} = [ |
816 |
{ |
844 |
{ |
817 |
hourBegin => 7.0, |
845 |
'hourEnd' => '19.5', |
818 |
hourEnd => 19.5, |
846 |
'weekDays' => [ |
819 |
weekDays => [1, 2, 3, 4, 5], |
847 |
1, |
820 |
}, |
848 |
2, |
|
|
849 |
3, |
850 |
4, |
851 |
5 |
852 |
], |
853 |
'hourBegin' => 7 |
854 |
} |
821 |
]; |
855 |
]; |
822 |
|
856 |
|
823 |
# |
857 |
# |
Lines 826-832
Link Here
|
826 |
# backed up. If you have shares that might be empty (and therefore an |
860 |
# backed up. If you have shares that might be empty (and therefore an |
827 |
# empty backup is valid) you should set this flag to 0. |
861 |
# empty backup is valid) you should set this flag to 0. |
828 |
# |
862 |
# |
829 |
$Conf{BackupZeroFilesIsFatal} = 1; |
863 |
$Conf{BackupZeroFilesIsFatal} = '1'; |
830 |
|
864 |
|
831 |
########################################################################### |
865 |
########################################################################### |
832 |
# How to backup a client |
866 |
# How to backup a client |
Lines 922-928
Link Here
|
922 |
# |
956 |
# |
923 |
# This setting only matters if $Conf{XferMethod} = 'smb'. |
957 |
# This setting only matters if $Conf{XferMethod} = 'smb'. |
924 |
# |
958 |
# |
925 |
$Conf{SmbShareName} = 'C$'; |
959 |
$Conf{SmbShareName} = [ |
|
|
960 |
'C$' |
961 |
]; |
926 |
|
962 |
|
927 |
# |
963 |
# |
928 |
# Smbclient share user name. This is passed to smbclient's -U argument. |
964 |
# Smbclient share user name. This is passed to smbclient's -U argument. |
Lines 975-983
Link Here
|
975 |
# needs to be a full path and you can't include shell syntax like |
1011 |
# needs to be a full path and you can't include shell syntax like |
976 |
# redirection and pipes; put that in a script if you need it. |
1012 |
# redirection and pipes; put that in a script if you need it. |
977 |
# |
1013 |
# |
978 |
$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName' |
1014 |
$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\\ full -Tc$X_option - $fileList'; |
979 |
. ' $I_option -U $userName -E -N -d 1' |
|
|
980 |
. ' -c tarmode\\ full -Tc$X_option - $fileList'; |
981 |
|
1015 |
|
982 |
# |
1016 |
# |
983 |
# Command to run smbclient for an incremental dump. |
1017 |
# Command to run smbclient for an incremental dump. |
Lines 989-997
Link Here
|
989 |
# needs to be a full path and you can't include shell syntax like |
1023 |
# needs to be a full path and you can't include shell syntax like |
990 |
# redirection and pipes; put that in a script if you need it. |
1024 |
# redirection and pipes; put that in a script if you need it. |
991 |
# |
1025 |
# |
992 |
$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName' |
1026 |
$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList'; |
993 |
. ' $I_option -U $userName -E -N -d 1' |
|
|
994 |
. ' -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList'; |
995 |
|
1027 |
|
996 |
# |
1028 |
# |
997 |
# Command to run smbclient for a restore. |
1029 |
# Command to run smbclient for a restore. |
Lines 1007-1015
Link Here
|
1007 |
# needs to be a full path and you can't include shell syntax like |
1039 |
# needs to be a full path and you can't include shell syntax like |
1008 |
# redirection and pipes; put that in a script if you need it. |
1040 |
# redirection and pipes; put that in a script if you need it. |
1009 |
# |
1041 |
# |
1010 |
$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName' |
1042 |
$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\\ full -Tx -'; |
1011 |
. ' $I_option -U $userName -E -N -d 1' |
|
|
1012 |
. ' -c tarmode\\ full -Tx -'; |
1013 |
|
1043 |
|
1014 |
########################################################################### |
1044 |
########################################################################### |
1015 |
# Tar Configuration |
1045 |
# Tar Configuration |
Lines 1044-1050
Link Here
|
1044 |
# |
1074 |
# |
1045 |
# This setting only matters if $Conf{XferMethod} = 'tar'. |
1075 |
# This setting only matters if $Conf{XferMethod} = 'tar'. |
1046 |
# |
1076 |
# |
1047 |
$Conf{TarShareName} = '/'; |
1077 |
$Conf{TarShareName} = [ |
|
|
1078 |
'/' |
1079 |
]; |
1048 |
|
1080 |
|
1049 |
# |
1081 |
# |
1050 |
# Full command to run tar on the client. GNU tar is required. You will |
1082 |
# Full command to run tar on the client. GNU tar is required. You will |
Lines 1085-1093
Link Here
|
1085 |
# needs to be a full path and you can't include shell syntax like |
1117 |
# needs to be a full path and you can't include shell syntax like |
1086 |
# redirection and pipes; put that in a script if you need it. |
1118 |
# redirection and pipes; put that in a script if you need it. |
1087 |
# |
1119 |
# |
1088 |
$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host' |
1120 |
$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; |
1089 |
. ' env LC_ALL=C $tarPath -c -v -f - -C $shareName+' |
|
|
1090 |
. ' --totals'; |
1091 |
|
1121 |
|
1092 |
# |
1122 |
# |
1093 |
# Extra tar arguments for full backups. Several variables are substituted at |
1123 |
# Extra tar arguments for full backups. Several variables are substituted at |
Lines 1146-1154
Link Here
|
1146 |
# needs to be a full path and you can't include shell syntax like |
1176 |
# needs to be a full path and you can't include shell syntax like |
1147 |
# redirection and pipes; put that in a script if you need it. |
1177 |
# redirection and pipes; put that in a script if you need it. |
1148 |
# |
1178 |
# |
1149 |
$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host' |
1179 |
$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName+'; |
1150 |
. ' env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner' |
|
|
1151 |
. ' -v -f - -C $shareName+'; |
1152 |
|
1180 |
|
1153 |
# |
1181 |
# |
1154 |
# Full path for tar on the client. Security caution: normal users should not |
1182 |
# Full path for tar on the client. Security caution: normal users should not |
Lines 1220-1226
Link Here
|
1220 |
# |
1248 |
# |
1221 |
# $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot']; |
1249 |
# $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot']; |
1222 |
# |
1250 |
# |
1223 |
$Conf{RsyncShareName} = '/'; |
1251 |
$Conf{RsyncShareName} = [ |
|
|
1252 |
'/' |
1253 |
]; |
1224 |
|
1254 |
|
1225 |
# |
1255 |
# |
1226 |
# Rsync daemon port on the client, for $Conf{XferMethod} = "rsyncd". |
1256 |
# Rsync daemon port on the client, for $Conf{XferMethod} = "rsyncd". |
Lines 1249-1255
Link Here
|
1249 |
# connect to an rsyncd on the client that is not password protected. |
1279 |
# connect to an rsyncd on the client that is not password protected. |
1250 |
# Turn off at your own risk. |
1280 |
# Turn off at your own risk. |
1251 |
# |
1281 |
# |
1252 |
$Conf{RsyncdAuthRequired} = 1; |
1282 |
$Conf{RsyncdAuthRequired} = '1'; |
1253 |
|
1283 |
|
1254 |
# |
1284 |
# |
1255 |
# When rsync checksum caching is enabled (by adding the |
1285 |
# When rsync checksum caching is enabled (by adding the |
Lines 1272-1306
Link Here
|
1272 |
# |
1302 |
# |
1273 |
# This setting has no effect unless checksum caching is turned on. |
1303 |
# This setting has no effect unless checksum caching is turned on. |
1274 |
# |
1304 |
# |
1275 |
$Conf{RsyncCsumCacheVerifyProb} = 0.01; |
1305 |
$Conf{RsyncCsumCacheVerifyProb} = '0.01'; |
1276 |
|
1306 |
|
1277 |
# |
1307 |
# |
1278 |
# Arguments to rsync for backup. Do not edit the first set unless you |
1308 |
# Arguments to rsync for backup. Do not edit the first set unless you |
1279 |
# have a thorough understanding of how File::RsyncP works. |
1309 |
# have a thorough understanding of how File::RsyncP works. |
1280 |
# |
1310 |
# |
1281 |
$Conf{RsyncArgs} = [ |
1311 |
$Conf{RsyncArgs} = [ |
1282 |
# |
1312 |
'--numeric-ids', |
1283 |
# Do not edit these! |
1313 |
'--perms', |
1284 |
# |
1314 |
'--owner', |
1285 |
'--numeric-ids', |
1315 |
'--group', |
1286 |
'--perms', |
1316 |
'-D', |
1287 |
'--owner', |
1317 |
'--links', |
1288 |
'--group', |
1318 |
'--hard-links', |
1289 |
'-D', |
1319 |
'--times', |
1290 |
'--links', |
1320 |
'--block-size=2048', |
1291 |
'--hard-links', |
1321 |
'--recursive', |
1292 |
'--times', |
|
|
1293 |
'--block-size=2048', |
1294 |
'--recursive', |
1295 |
|
1296 |
# |
1297 |
# Rsync >= 2.6.3 supports the --checksum-seed option |
1298 |
# which allows rsync checksum caching on the server. |
1299 |
# Uncomment this to enable rsync checksum caching if |
1300 |
# you have a recent client rsync version and you want |
1301 |
# to enable checksum caching. |
1302 |
# |
1303 |
#'--checksum-seed=32761', |
1304 |
]; |
1322 |
]; |
1305 |
|
1323 |
|
1306 |
# |
1324 |
# |
Lines 1355-1388
Link Here
|
1355 |
# Note: $Conf{RsyncArgsExtra} doesn't apply to $Conf{RsyncRestoreArgs}. |
1373 |
# Note: $Conf{RsyncArgsExtra} doesn't apply to $Conf{RsyncRestoreArgs}. |
1356 |
# |
1374 |
# |
1357 |
$Conf{RsyncRestoreArgs} = [ |
1375 |
$Conf{RsyncRestoreArgs} = [ |
1358 |
# |
1376 |
'--numeric-ids', |
1359 |
# Do not edit these! |
1377 |
'--perms', |
1360 |
# |
1378 |
'--owner', |
1361 |
'--numeric-ids', |
1379 |
'--group', |
1362 |
'--perms', |
1380 |
'-D', |
1363 |
'--owner', |
1381 |
'--links', |
1364 |
'--group', |
1382 |
'--hard-links', |
1365 |
'-D', |
1383 |
'--times', |
1366 |
'--links', |
1384 |
'--block-size=2048', |
1367 |
'--hard-links', |
1385 |
'--relative', |
1368 |
'--times', |
1386 |
'--ignore-times', |
1369 |
'--block-size=2048', |
1387 |
'--recursive', |
1370 |
'--relative', |
|
|
1371 |
'--ignore-times', |
1372 |
'--recursive', |
1373 |
|
1374 |
# |
1375 |
# Rsync >= 2.6.3 supports the --checksum-seed option |
1376 |
# which allows rsync checksum caching on the server. |
1377 |
# Uncomment this to enable rsync checksum caching if |
1378 |
# you have a recent client rsync version and you want |
1379 |
# to enable checksum caching. |
1380 |
# |
1381 |
#'--checksum-seed=32761', |
1382 |
|
1383 |
# |
1384 |
# Add additional arguments here |
1385 |
# |
1386 |
]; |
1388 |
]; |
1387 |
|
1389 |
|
1388 |
########################################################################### |
1390 |
########################################################################### |
Lines 1515-1521
Link Here
|
1515 |
# |
1517 |
# |
1516 |
# Set to 0 to disable this feature. |
1518 |
# Set to 0 to disable this feature. |
1517 |
# |
1519 |
# |
1518 |
$Conf{ArchivePar} = 0; |
1520 |
$Conf{ArchivePar} = '0'; |
1519 |
|
1521 |
|
1520 |
# |
1522 |
# |
1521 |
# Archive Size Split |
1523 |
# Archive Size Split |
Lines 1551-1559
Link Here
|
1551 |
# needs to be a full path and you can't include shell syntax like |
1553 |
# needs to be a full path and you can't include shell syntax like |
1552 |
# redirection and pipes; put that in a script if you need it. |
1554 |
# redirection and pipes; put that in a script if you need it. |
1553 |
# |
1555 |
# |
1554 |
$Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost' |
1556 |
$Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost $tarCreatePath $splitpath $parpath $host $backupnumber $compression $compext $splitsize $archiveloc $parfile *'; |
1555 |
. ' $tarCreatePath $splitpath $parpath $host $backupnumber' |
|
|
1556 |
. ' $compression $compext $splitsize $archiveloc $parfile *'; |
1557 |
|
1557 |
|
1558 |
# |
1558 |
# |
1559 |
# Full path for ssh. Security caution: normal users should not |
1559 |
# Full path for ssh. Security caution: normal users should not |
Lines 1625-1631
Link Here
|
1625 |
# setting this flag is a great way to verify that the machines have |
1625 |
# setting this flag is a great way to verify that the machines have |
1626 |
# their netbios name set correctly before turning on DCHP. |
1626 |
# their netbios name set correctly before turning on DCHP. |
1627 |
# |
1627 |
# |
1628 |
$Conf{FixedIPNetBiosNameCheck} = 0; |
1628 |
$Conf{FixedIPNetBiosNameCheck} = '0'; |
1629 |
|
1629 |
|
1630 |
# |
1630 |
# |
1631 |
# Full path to the ping command. Security caution: normal users |
1631 |
# Full path to the ping command. Security caution: normal users |
Lines 1802-1814
Link Here
|
1802 |
# needs to be a full path and you can't include shell syntax like |
1802 |
# needs to be a full path and you can't include shell syntax like |
1803 |
# redirection and pipes; put that in a script if you need it. |
1803 |
# redirection and pipes; put that in a script if you need it. |
1804 |
# |
1804 |
# |
1805 |
$Conf{DumpPreUserCmd} = undef; |
1805 |
$Conf{DumpPreUserCmd} = undef; |
1806 |
$Conf{DumpPostUserCmd} = undef; |
1806 |
$Conf{DumpPostUserCmd} = undef; |
1807 |
$Conf{DumpPreShareCmd} = undef; |
1807 |
$Conf{DumpPreShareCmd} = undef; |
1808 |
$Conf{DumpPostShareCmd} = undef; |
1808 |
$Conf{DumpPostShareCmd} = undef; |
1809 |
$Conf{RestorePreUserCmd} = undef; |
1809 |
$Conf{RestorePreUserCmd} = undef; |
1810 |
$Conf{RestorePostUserCmd} = undef; |
1810 |
$Conf{RestorePostUserCmd} = undef; |
1811 |
$Conf{ArchivePreUserCmd} = undef; |
1811 |
$Conf{ArchivePreUserCmd} = undef; |
1812 |
$Conf{ArchivePostUserCmd} = undef; |
1812 |
$Conf{ArchivePostUserCmd} = undef; |
1813 |
|
1813 |
|
1814 |
# |
1814 |
# |
Lines 1832-1838
Link Here
|
1832 |
# that snapshots or dumps a database which fails because |
1832 |
# that snapshots or dumps a database which fails because |
1833 |
# of some database error. |
1833 |
# of some database error. |
1834 |
# |
1834 |
# |
1835 |
$Conf{UserCmdCheckStatus} = 0; |
1835 |
$Conf{UserCmdCheckStatus} = '0'; |
1836 |
|
1836 |
|
1837 |
# |
1837 |
# |
1838 |
# Override the client's host name. This allows multiple clients |
1838 |
# Override the client's host name. This allows multiple clients |
Lines 1870-1876
Link Here
|
1870 |
# rounded up (ie: 2.5 means a user will never receive email more |
1870 |
# rounded up (ie: 2.5 means a user will never receive email more |
1871 |
# than once every 3 days). |
1871 |
# than once every 3 days). |
1872 |
# |
1872 |
# |
1873 |
$Conf{EMailNotifyMinDays} = 2.5; |
1873 |
$Conf{EMailNotifyMinDays} = '2.5'; |
1874 |
|
1874 |
|
1875 |
# |
1875 |
# |
1876 |
# Name to use as the "from" name for email. Depending upon your mail |
1876 |
# Name to use as the "from" name for email. Depending upon your mail |
Lines 1925-1931
Link Here
|
1925 |
# When there have been no backups in this number of days the user |
1925 |
# When there have been no backups in this number of days the user |
1926 |
# is sent an email. |
1926 |
# is sent an email. |
1927 |
# |
1927 |
# |
1928 |
$Conf{EMailNotifyOldBackupDays} = 7.0; |
1928 |
$Conf{EMailNotifyOldBackupDays} = 7; |
1929 |
|
1929 |
|
1930 |
# |
1930 |
# |
1931 |
# This subject and message is sent to a user if their PC has not recently |
1931 |
# This subject and message is sent to a user if their PC has not recently |
Lines 1952-1958
Link Here
|
1952 |
# How old the most recent backup of Outlook files has to be before |
1952 |
# How old the most recent backup of Outlook files has to be before |
1953 |
# notifying user. |
1953 |
# notifying user. |
1954 |
# |
1954 |
# |
1955 |
$Conf{EMailNotifyOldOutlookDays} = 5.0; |
1955 |
$Conf{EMailNotifyOldOutlookDays} = 5; |
1956 |
|
1956 |
|
1957 |
# |
1957 |
# |
1958 |
# This subject and message is sent to a user if their Outlook files have |
1958 |
# This subject and message is sent to a user if their Outlook files have |
Lines 1980-1989
Link Here
|
1980 |
# Additional email headers. This sets to charset to |
1980 |
# Additional email headers. This sets to charset to |
1981 |
# utf8. |
1981 |
# utf8. |
1982 |
# |
1982 |
# |
1983 |
$Conf{EMailHeaders} = <<EOF; |
1983 |
$Conf{EMailHeaders} = 'MIME-Version: 1.0 |
1984 |
MIME-Version: 1.0 |
|
|
1985 |
Content-Type: text/plain; charset="utf-8" |
1984 |
Content-Type: text/plain; charset="utf-8" |
1986 |
EOF |
1985 |
'; |
1987 |
|
1986 |
|
1988 |
########################################################################### |
1987 |
########################################################################### |
1989 |
# CGI user interface configuration settings |
1988 |
# CGI user interface configuration settings |
Lines 2056-2062
Link Here
|
2056 |
# be rendered as a link to http://myhost/users/craig.html. |
2055 |
# be rendered as a link to http://myhost/users/craig.html. |
2057 |
# |
2056 |
# |
2058 |
$Conf{CgiUserHomePageCheck} = ''; |
2057 |
$Conf{CgiUserHomePageCheck} = ''; |
2059 |
$Conf{CgiUserUrlCreate} = 'mailto:%s'; |
2058 |
$Conf{CgiUserUrlCreate} = 'mailto:%s'; |
2060 |
|
2059 |
|
2061 |
# |
2060 |
# |
2062 |
# Date display format for CGI interface. A value of 1 uses US-style |
2061 |
# Date display format for CGI interface. A value of 1 uses US-style |
Lines 2071-2082
Link Here
|
2071 |
# the user is listed in the host file (as either the user or in moreUsers) |
2070 |
# the user is listed in the host file (as either the user or in moreUsers) |
2072 |
# are displayed. |
2071 |
# are displayed. |
2073 |
# |
2072 |
# |
2074 |
$Conf{CgiNavBarAdminAllHosts} = 1; |
2073 |
$Conf{CgiNavBarAdminAllHosts} = '1'; |
2075 |
|
2074 |
|
2076 |
# |
2075 |
# |
2077 |
# Enable/disable the search box in the navigation bar. |
2076 |
# Enable/disable the search box in the navigation bar. |
2078 |
# |
2077 |
# |
2079 |
$Conf{CgiSearchBoxEnable} = 1; |
2078 |
$Conf{CgiSearchBoxEnable} = '1'; |
2080 |
|
2079 |
|
2081 |
# |
2080 |
# |
2082 |
# Additional navigation bar links. These appear for both regular users |
2081 |
# Additional navigation bar links. These appear for both regular users |
Lines 2086-2116
Link Here
|
2086 |
# just literally displaying name. |
2085 |
# just literally displaying name. |
2087 |
# |
2086 |
# |
2088 |
$Conf{CgiNavBarLinks} = [ |
2087 |
$Conf{CgiNavBarLinks} = [ |
2089 |
{ |
2088 |
{ |
2090 |
link => "?action=view&type=docs", |
2089 |
'link' => '?action=view&type=docs', |
2091 |
lname => "Documentation", # actually displays $Lang->{Documentation} |
2090 |
'lname' => 'Documentation', |
2092 |
}, |
2091 |
'name' => undef |
2093 |
{ |
2092 |
}, |
2094 |
link => "http://backuppc.wiki.sourceforge.net", |
2093 |
{ |
2095 |
name => "Wiki", # displays literal "Wiki" |
2094 |
'link' => 'http://backuppc.wiki.sourceforge.net', |
2096 |
}, |
2095 |
'lname' => undef, |
2097 |
{ |
2096 |
'name' => 'Wiki' |
2098 |
link => "http://backuppc.sourceforge.net", |
2097 |
}, |
2099 |
name => "SourceForge", # displays literal "SourceForge" |
2098 |
{ |
2100 |
}, |
2099 |
'link' => 'http://backuppc.sourceforge.net', |
|
|
2100 |
'lname' => undef, |
2101 |
'name' => 'SourceForge' |
2102 |
} |
2101 |
]; |
2103 |
]; |
2102 |
|
2104 |
|
2103 |
# |
2105 |
# |
2104 |
# Hilight colors based on status that are used in the PC summary page. |
2106 |
# Hilight colors based on status that are used in the PC summary page. |
2105 |
# |
2107 |
# |
2106 |
$Conf{CgiStatusHilightColor} = { |
2108 |
$Conf{CgiStatusHilightColor} = { |
2107 |
Reason_backup_failed => '#ffcccc', |
2109 |
'Reason_backup_failed' => '#ffcccc', |
2108 |
Reason_backup_done => '#ccffcc', |
2110 |
'Reason_backup_done' => '#ccffcc', |
2109 |
Reason_no_ping => '#ffff99', |
2111 |
'Reason_backup_canceled_by_user' => '#ff9900', |
2110 |
Reason_backup_canceled_by_user => '#ff9900', |
2112 |
'Reason_no_ping' => '#ffff99', |
2111 |
Status_backup_in_progress => '#66cc99', |
2113 |
'Disabled_OnlyManualBackups' => '#d1d1d1', |
2112 |
Disabled_OnlyManualBackups => '#d1d1d1', |
2114 |
'Status_backup_in_progress' => '#66cc99', |
2113 |
Disabled_AllBackupsDisabled => '#d1d1d1', |
2115 |
'Disabled_AllBackupsDisabled' => '#d1d1d1' |
2114 |
}; |
2116 |
}; |
2115 |
|
2117 |
|
2116 |
# |
2118 |
# |
Lines 2138-2144
Link Here
|
2138 |
# 'pl' => 'text/plain', |
2140 |
# 'pl' => 'text/plain', |
2139 |
# }; |
2141 |
# }; |
2140 |
# |
2142 |
# |
2141 |
$Conf{CgiExt2ContentType} = { }; |
2143 |
$Conf{CgiExt2ContentType} = {}; |
2142 |
|
2144 |
|
2143 |
# |
2145 |
# |
2144 |
# URL (without the leading http://host) for BackupPC's image directory. |
2146 |
# URL (without the leading http://host) for BackupPC's image directory. |
Lines 2163-2169
Link Here
|
2163 |
# |
2165 |
# |
2164 |
# Whether the user is allowed to edit their per-PC config. |
2166 |
# Whether the user is allowed to edit their per-PC config. |
2165 |
# |
2167 |
# |
2166 |
$Conf{CgiUserConfigEditEnable} = 1; |
2168 |
$Conf{CgiUserConfigEditEnable} = '1'; |
2167 |
|
2169 |
|
2168 |
# |
2170 |
# |
2169 |
# Which per-host config variables a non-admin user is allowed |
2171 |
# Which per-host config variables a non-admin user is allowed |
Lines 2177-2272
Link Here
|
2177 |
# sorts of bad things. |
2179 |
# sorts of bad things. |
2178 |
# |
2180 |
# |
2179 |
$Conf{CgiUserConfigEdit} = { |
2181 |
$Conf{CgiUserConfigEdit} = { |
2180 |
FullPeriod => 1, |
2182 |
FullPeriod => 1, |
2181 |
IncrPeriod => 1, |
2183 |
IncrPeriod => 1, |
2182 |
FullKeepCnt => 1, |
2184 |
FullKeepCnt => 1, |
2183 |
FullKeepCntMin => 1, |
2185 |
FullKeepCntMin => 1, |
2184 |
FullAgeMax => 1, |
2186 |
FullAgeMax => 1, |
2185 |
IncrKeepCnt => 1, |
2187 |
IncrKeepCnt => 1, |
2186 |
IncrKeepCntMin => 1, |
2188 |
IncrKeepCntMin => 1, |
2187 |
IncrAgeMax => 1, |
2189 |
IncrAgeMax => 1, |
2188 |
IncrLevels => 1, |
2190 |
IncrLevels => 1, |
2189 |
IncrFill => 1, |
2191 |
IncrFill => 1, |
2190 |
PartialAgeMax => 1, |
2192 |
PartialAgeMax => 1, |
2191 |
RestoreInfoKeepCnt => 1, |
2193 |
RestoreInfoKeepCnt => 1, |
2192 |
ArchiveInfoKeepCnt => 1, |
2194 |
ArchiveInfoKeepCnt => 1, |
2193 |
BackupFilesOnly => 1, |
2195 |
BackupFilesOnly => 1, |
2194 |
BackupFilesExclude => 1, |
2196 |
BackupFilesExclude => 1, |
2195 |
BackupsDisable => 1, |
2197 |
BackupsDisable => 1, |
2196 |
BlackoutBadPingLimit => 1, |
2198 |
BlackoutBadPingLimit => 1, |
2197 |
BlackoutGoodCnt => 1, |
2199 |
BlackoutGoodCnt => 1, |
2198 |
BlackoutPeriods => 1, |
2200 |
BlackoutPeriods => 1, |
2199 |
BackupZeroFilesIsFatal => 1, |
2201 |
BackupZeroFilesIsFatal => 1, |
2200 |
ClientCharset => 1, |
2202 |
ClientCharset => 1, |
2201 |
ClientCharsetLegacy => 1, |
2203 |
ClientCharsetLegacy => 1, |
2202 |
XferMethod => 1, |
2204 |
XferMethod => 1, |
2203 |
XferLogLevel => 1, |
2205 |
XferLogLevel => 1, |
2204 |
SmbShareName => 1, |
2206 |
SmbShareName => 1, |
2205 |
SmbShareUserName => 1, |
2207 |
SmbShareUserName => 1, |
2206 |
SmbSharePasswd => 1, |
2208 |
SmbSharePasswd => 1, |
2207 |
SmbClientFullCmd => 0, |
2209 |
SmbClientFullCmd => 0, |
2208 |
SmbClientIncrCmd => 0, |
2210 |
SmbClientIncrCmd => 0, |
2209 |
SmbClientRestoreCmd => 0, |
2211 |
SmbClientRestoreCmd => 0, |
2210 |
TarShareName => 1, |
2212 |
TarShareName => 1, |
2211 |
TarFullArgs => 1, |
2213 |
TarFullArgs => 1, |
2212 |
TarIncrArgs => 1, |
2214 |
TarIncrArgs => 1, |
2213 |
TarClientCmd => 0, |
2215 |
TarClientCmd => 0, |
2214 |
TarClientRestoreCmd => 0, |
2216 |
TarClientRestoreCmd => 0, |
2215 |
TarClientPath => 0, |
2217 |
TarClientPath => 0, |
2216 |
RsyncShareName => 1, |
2218 |
RsyncShareName => 1, |
2217 |
RsyncdClientPort => 1, |
2219 |
RsyncdClientPort => 1, |
2218 |
RsyncdPasswd => 1, |
2220 |
RsyncdPasswd => 1, |
2219 |
RsyncdUserName => 1, |
2221 |
RsyncdUserName => 1, |
2220 |
RsyncdAuthRequired => 1, |
2222 |
RsyncdAuthRequired => 1, |
2221 |
RsyncCsumCacheVerifyProb => 1, |
2223 |
RsyncCsumCacheVerifyProb => 1, |
2222 |
RsyncArgs => 1, |
2224 |
RsyncArgs => 1, |
2223 |
RsyncArgsExtra => 1, |
2225 |
RsyncArgsExtra => 1, |
2224 |
RsyncRestoreArgs => 1, |
2226 |
RsyncRestoreArgs => 1, |
2225 |
RsyncClientCmd => 0, |
2227 |
RsyncClientCmd => 0, |
2226 |
RsyncClientRestoreCmd => 0, |
2228 |
RsyncClientRestoreCmd => 0, |
2227 |
RsyncClientPath => 0, |
2229 |
RsyncClientPath => 0, |
2228 |
FtpShareName => 1, |
2230 |
FtpShareName => 1, |
2229 |
FtpUserName => 1, |
2231 |
FtpUserName => 1, |
2230 |
FtpPasswd => 1, |
2232 |
FtpPasswd => 1, |
2231 |
FtpBlockSize => 1, |
2233 |
FtpBlockSize => 1, |
2232 |
FtpPort => 1, |
2234 |
FtpPort => 1, |
2233 |
FtpTimeout => 1, |
2235 |
FtpTimeout => 1, |
2234 |
FtpFollowSymlinks => 1, |
2236 |
FtpFollowSymlinks => 1, |
2235 |
FtpRestoreEnabled => 1, |
2237 |
FtpRestoreEnabled => 1, |
2236 |
ArchiveDest => 1, |
2238 |
ArchiveDest => 1, |
2237 |
ArchiveComp => 1, |
2239 |
ArchiveComp => 1, |
2238 |
ArchivePar => 1, |
2240 |
ArchivePar => 1, |
2239 |
ArchiveSplit => 1, |
2241 |
ArchiveSplit => 1, |
2240 |
ArchiveClientCmd => 0, |
2242 |
ArchiveClientCmd => 0, |
2241 |
FixedIPNetBiosNameCheck => 1, |
2243 |
FixedIPNetBiosNameCheck => 1, |
2242 |
NmbLookupCmd => 0, |
2244 |
NmbLookupCmd => 0, |
2243 |
NmbLookupFindHostCmd => 0, |
2245 |
NmbLookupFindHostCmd => 0, |
2244 |
PingMaxMsec => 1, |
2246 |
PingMaxMsec => 1, |
2245 |
PingCmd => 0, |
2247 |
PingCmd => 0, |
2246 |
ClientTimeout => 1, |
2248 |
ClientTimeout => 1, |
2247 |
MaxOldPerPCLogFiles => 1, |
2249 |
MaxOldPerPCLogFiles => 1, |
2248 |
CompressLevel => 1, |
2250 |
CompressLevel => 1, |
2249 |
ClientNameAlias => 1, |
2251 |
ClientNameAlias => 1, |
2250 |
DumpPreUserCmd => 0, |
2252 |
DumpPreUserCmd => 0, |
2251 |
DumpPostUserCmd => 0, |
2253 |
DumpPostUserCmd => 0, |
2252 |
RestorePreUserCmd => 0, |
2254 |
RestorePreUserCmd => 0, |
2253 |
RestorePostUserCmd => 0, |
2255 |
RestorePostUserCmd => 0, |
2254 |
ArchivePreUserCmd => 0, |
2256 |
ArchivePreUserCmd => 0, |
2255 |
ArchivePostUserCmd => 0, |
2257 |
ArchivePostUserCmd => 0, |
2256 |
DumpPostShareCmd => 0, |
2258 |
DumpPostShareCmd => 0, |
2257 |
DumpPreShareCmd => 0, |
2259 |
DumpPreShareCmd => 0, |
2258 |
UserCmdCheckStatus => 0, |
2260 |
UserCmdCheckStatus => 0, |
2259 |
EMailNotifyMinDays => 1, |
2261 |
EMailNotifyMinDays => 1, |
2260 |
EMailFromUserName => 1, |
2262 |
EMailFromUserName => 1, |
2261 |
EMailAdminUserName => 1, |
2263 |
EMailAdminUserName => 1, |
2262 |
EMailUserDestDomain => 1, |
2264 |
EMailUserDestDomain => 1, |
2263 |
EMailNoBackupEverSubj => 1, |
2265 |
EMailNoBackupEverSubj => 1, |
2264 |
EMailNoBackupEverMesg => 1, |
2266 |
EMailNoBackupEverMesg => 1, |
2265 |
EMailNotifyOldBackupDays => 1, |
2267 |
EMailNotifyOldBackupDays => 1, |
2266 |
EMailNoBackupRecentSubj => 1, |
2268 |
EMailNoBackupRecentSubj => 1, |
2267 |
EMailNoBackupRecentMesg => 1, |
2269 |
EMailNoBackupRecentMesg => 1, |
2268 |
EMailNotifyOldOutlookDays => 1, |
2270 |
EMailNotifyOldOutlookDays => 1, |
2269 |
EMailOutlookBackupSubj => 1, |
2271 |
EMailOutlookBackupSubj => 1, |
2270 |
EMailOutlookBackupMesg => 1, |
2272 |
EMailOutlookBackupMesg => 1, |
2271 |
EMailHeaders => 1, |
2273 |
EMailHeaders => 1, |
2272 |
}; |
2274 |
}; |