forked from International-Nepal-Fellowship/Windows-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup-sample.ini
77 lines (69 loc) · 4.04 KB
/
backup-sample.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[Common]
; Comments start with a semi-colon like this line.
; Names of the sections and parameters are not case sensitive.
; So use upper and lower case as you like.
; The Common section contains the parameter values you want for most jobs.
; The order of priority for setting a parameter is:
; 1 - value specified on command line
; 2 - value in host-specific section of INI file
; 3 - value in Common section of INI file
; 4 - default value hard-coded in ntfs-hardlink-backup.ps1 script
; Blank lines also do no harm
; Parameters that are strings are specified parameter=string, like this:
backupDestination=X:\Backup
; most parameter values can contain enviroment variables in them like this:
backupSources=c:\src\<os>\<computername>,<Public>
; a not existing environment variable will not be substituted
; SMTPPassword, preExecutionCommand and postExecutionCommand cannot contain enviroment variables
; Parameters that are numbers are specified parameter=number, like this:
backupsToKeep=20
; Parameters that are switches (boolean) are turned on by setting to "1", "t" or "true"
; They are off by default, but you can explicitly switch them off by setting to "0", "f" or "false"
localSubnetOnly=1
NoShadowCopy=t
Logfile=C:\Logs\Backup
SMTPServer=mail.mycompany.example.org
SMTPPassword=The@Email@Password
SMTPTimeout=120000
emailSendRetries=50
timeTolerance=30000
[server-01.mycompany.example.org]
; Parameters that are specific to a particular server/computer go in a section for that computer.
; The section name is the fully-qualified domain name (FQDN) of the computer.
backupSources=D:\Shares\Admin,E:\Shares\Finance,E:\Shares\ICT,D:\Shares\Users
[server-02.mycompany.example.org]
; This allows you to make a single INI file and use it the same on all computers.
backupSources=E:\Shares\HR,E:\Shares\Software
[*server*.mycompany.example.org]
; "*" can be used as placeholder. This section would be applied for server-02.mycompany.example.org, server-01.mycompany.example.org and remote-server.mycompany.example.org
; but not remote-server.branchdomain.mycompany.example.org
; This section would override the parameters in the common section
; if multiple sections matching the fully-qualified domain name (FQDN) of the computer and they contain the same
; parameters the section that is specified later in the file will override the parameters of the sections that are
; specified earlier in the file
; sections that match the FQDN exactly (without using "*") have the highest priority and will override parameters of sections that match the FQDN by using "*"
[*client*.mycompany.example.org]
; Send the backup to a file share on backup-server, and put it in a folder named after the current commputer
backupDestination=\\backup-server.mycompany.example.org\clientbackup\<computername>
; Only do the backup if the client computer is in the same subnet as the server with the file share
; This prevents the backup from running when the user is at another office on the mycompany intranet
; Maybe the intranet bandwidth over VPN is not good enough for doing backup.
localsubnetonly=true
; Maybe the client is on a /24 and server is on a /24 but the intranet address allocation is designed such that
; when the 2 /24 subnets are actually within the same /20 then that means the 2 subnets are really "local" to each other.
; e.g. on the same campus
; and so backup is a viable thing to do.
; Tell it this by specifying how wide the subnet mask match can be to be considered "same campus".
; In this example 255.255.240.0 is a /20 (16 /24 subnets together)
localSubnetMask=255.255.240.0
[remote-server.branchdomain.mycompany.example.org]
backupSources=D:\Shares\Admin,D:\Shares\Finance
; And so you can override a parameter from the common section if it needs to be different
; on just 1 or a few computers.
; Have fun and sleep easy with your backups safely done