~m-grant-prg/lixbackups/trunk

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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
2018-02-24 v 1.2.13 Mark Grant <m.grant.prg@gmail.com>
	*  Standardise on misc directory.
	Add standard AutoTools bootstrap script.
	Bring project structure up to latest standard.

2017-12-03 v 1.2.12 Mark Grant <m.grant.prg@gmail.com>
	*  Adopt normal exit code policy; 0 on success, 1 on failure.
	Add SPDX license tags to source files.
	Add project-wide TODO file.
	Determine the manual section from the target file suffix. If the
	suffix is blank (foo.) or if there is no suffix (foo) then error out.
	Update man page copyright span attribution.
	attbckshare		Now at version 1.2.7
	chkbckshare		Now at version 1.2.5
	detbckshare		Now at version 1.2.6
	netbckup		Now at version 1.2.12
	setup.sh		Now at version 1.2.5

2017-10-26 v 1.2.11 Mark Grant <m.grant.prg@gmail.com>
	* bcksystem.exclude extended following more detailed linux FHS analysis.

2017-09-07 v 1.2.10 Mark Grant <m.grant.prg@gmail.com>
	* As of kernel version 4.13.0 the default CIFS protocol version has been
	changed from 1.0 to 3.0. However, some old NAS devices may well still
	only know 1.0. So introduce a config file param for cifs version. If
	left blank the the system default will be used.
	attbckshare		Now at version 1.2.5
	setup.sh		Now at version 1.2.3

2017-08-16 v 1.2.9 Mark Grant <m.grant.prg@gmail.com>
	* If lixbackups.log does not exist create with root:adm ownership
	instead of syslog:adm as Debian does not have a syslog user.
	netbckup		Now at version 1.2.10

2017-06-30 v 1.2.8 Mark Grant <m.grant.prg@gmail.com>
	* Add --format=posix to the tar command to avoid the 99 character
	filename limitation.
	netbckup		Now at version 1.2.9

2017-06-24 v 1.2.7 Mark Grant <m.grant.prg@gmail.com>
	* Move excludes before includes in the tar command. With the
	introduction of GNU tar v1.29, some command line arguments are sensitive
	to the order in which they appear. In our case excludes must precede
	includes.
	Tidy-up source code formatting.
	attbckshare		Now at version 1.2.4
	chkbckshare		Now at version 1.2.3
	detbckshare		Now at version 1.2.4
	netbckup		Now at version 1.2.8
	setup.sh		Still at version 1.2.2

2017-05-07 v 1.2.6 Mark Grant <m.grant.prg@gmail.com>
	* Move command man pages to section 8.
	Adopt new --enable-distcheckfake and rootetc standards.
	Adopt standards from atbre template v1.0.0

2015-10-19 v 1.2.5 Mark Grant <m.grant.prg@gmail.com>
	* Note conformity to AutoTools General Template v1.0.6.
	Restructure to conform to AutoTools General Template v1.0.5.

2015-10-06 v 1.2.4 Mark Grant <m.grant.prg@gmail.com>
	* Update to conform to AutoTools General Template v1.0.4.

2015-06-25 v 1.2.3 Mark Grant <m.grant.prg@gmail.com>
	* Improve checking for required programs.
	Reduce df output from -ah to -h.
	netbckup		Now at version 1.2.6

2015-03-28 v 1.2.2 Mark Grant <m.grant.prg@gmail.com>
	* Change configuration files directory to lixbackups to limit risk of
	conflict with other backup packages.
	Use logger to write key messages to syslog.
	Change to use log file localstatedir/log/lixbackups.log. Set up
	management of this log file by logrotate.
	Change permissions on logfile to 0640 and ownership to syslog:adm
	attbckshare		Now at version 1.2.3
	chkbckshare		Now at version 1.2.2
	detbckshare		Now at version 1.2.3
	netbckup		Now at version 1.2.5
	setup.sh		Now at version 1.2.2

2015-02-12 v 1.2.1 Mark Grant <m.grant.prg@gmail.com>
	* Add support for NFS shares.
	Add support for different targets for weekly and ad hoc type backups.
	Remove BSD support.
	Remove latency_compensate function as better hardware and / or removal
	of BSD support means it is redundant.
	Improve security by using a credential file on CIFS shares.
	attbckshare		Now at version 1.2.1
	chkbckshare		Now at version 1.2.1
	detbckshare		Now at version 1.2.1
	netbckup		Now at version 1.2.1
	setup.sh		Now at version 1.2.1

2014-11-30 v 1.1.4 Mark Grant <m.grant.prg@gmail.com>
	* Add support for including overall package version in script --version.
	Switch to use of GNU getopt to allow long options and implement them.
	Allow for FreeBSD quirk of 2 different getopt programs on PATH. See
	comments in script at the start of "Main".
	Structure OS specific requirements to test for generic *BSD OSs and use
	Linux as the default.
	attbckshare		Still at version 1.1.4
	chkbckshare		Still at version 1.1.3
	detbckshare		Still at version 1.1.3
	netbckup		Introduced at version 1.0.5
	setup.sh		Now at version 1.1.3

2014-10-04 v 1.1.3 Mark Grant <m.grant.prg@gmail.com>
	* Consolidate backup scripts into one netbckup script.
	Restrict login during backup if safe to do so.
	Change package name to LIXBackups.
	Change latency_compensate function to attempt 1 execution of command
	without causing a sleep.
	Changed --exclude-from and --files-from file names to more meaningful
	names.
	attbckshare		Still at version 1.1.1
	chkbckshare		Still at version 1.1.1
	detbckshare		Still at version 1.1.1
	netbckup		Introduced at version 1.0.3
	setup.sh		Now at version 1.1.2

2014-06-18 v 1.1.2 Mark Grant <m.grant.prg@gmail.com>
	* Improved directory structure in source and which files Git tracks.
	Added configure check for txt2man. Added manual entries for files.
	attbckshare		Still at version 1.1.1
	bckdatadaily		Still at version 1.1.1
	bckfulladhoc		Still at version 1.1.1
	bckfullweekly		Still at version 1.1.1
	bckincdaily		Still at version 1.1.1
	chkbckshare		Still at version 1.1.1
	detbckshare		Still at version 1.1.1
	setup.sh		Still at version 1.1.1

2014-01-20 v 1.1.1 Mark Grant <m.grant.prg@gmail.com>
	* Changed stdout & stderr message output to use a function directing to
	one or other based on a status. Changed version option to -V. Added
	usage of standard error routine. Introduced function to repeat commands
	to overcome latency issues on NAS mount from either mount_smbfs or
	slow hardware.
	attbckshare		Now at version 1.1.1
	bckdatadaily		Now at version 1.1.1
	bckfulladhoc		Now at version 1.1.1
	bckfullweekly		Now at version 1.1.1
	bckincdaily		Now at version 1.1.1
	chkbckshare		Now at version 1.1.1
	detbckshare		Now at version 1.1.1
	setup.sh		Now at version 1.1.1

2013-10-30 v 1.0.27 Mark Grant <m.grant.prg@gmail.com>
	* Removed '-' prepending operations in the tar command.
	Added --exclude-caches to the tar command. Also changed backup command
	in bckfulladhoc to use tar or gtar depending on OS.
	bckdatadaily		Now at version 1.0.4
	bckfulladhoc		Now at version 1.0.14
	bckfullweekly		Now at version 1.0.21
	bckincdaily		Now at version 1.0.21

2013-09-14 v 1.0.26 Mark Grant <m.grant.prg@gmail.com>
	* Logic error introduced in v1.0.19 corrected.
	bckfullweekly		Now at version 1.0.20

2013-09-14 v 1.0.25 Mark Grant <m.grant.prg@gmail.com>
	* Improved coding around sequence calculation.
	bckfullweekly		Now at version 1.0.19

2013-09-14 v 1.0.24 Mark Grant <m.grant.prg@gmail.com>
	* Changed sequence calculation from DOM / 7 + 1 to testing day
	against 7, 14, 21 and 28 as original calc did not work correctly when
	day was exactly divisible by 7.
	bckfullweekly		Now at version 1.0.18

2013-08-22 v 1.0.23 Mark Grant <m.grant.prg@gmail.com>
	* Debian best practice documentation requires that programs placed in
	the PATH should not have extensions as the programs may be rewritten
	in a different language. This would then require a name change, or,
	if left as-is would cause confusion. So all names changed to remove .sh
	extension except for setup.sh which is not on the PATH.
	attbckshare		Now at version 1.0.9
	bckdatadaily		Now at version 1.0.3
	bckfulladhoc		Now at version 1.0.13
	bckfullweekly		Now at version 1.0.17
	bckincdaily		Now at version 1.0.20
	detbckshare		Now at version 1.0.9

2013-04-01 v 1.0.22 Mark Grant <m.grant.prg@gmail.com>
	* Changed all scripts to use new backups sub-directory of sysconfdir.
	Added include and exclude from files.
	attbckshare.sh		Now at version 1.0.8
	bckdatadaily.sh		Now at version 1.0.2
	bckfulladhoc.sh:	Now at version 1.0.12
	bckfullweekly.sh:	Now at version 1.0.16
	bckincdaily.sh:		Now at version 1.0.19
	detbckshare.sh		Now at version 1.0.8
	setup.sh:		Now at version 1.0.6

2013-03-02 v 1.0.21 Mark Grant <m.grant.prg@gmail.com>
	* Created bckdatadaily.sh which performs a data backup using files
	specified in $etclocation/backup.files. Amended setup.sh to create the
	file needed.
	bckdatadaily.sh:	Now at version 1.0.1
	setup.sh:		Now at version 1.0.5

2013-02-26 v 1.0.20 Mark Grant <m.grant.prg@gmail.com>
	* Changed all scripts to use getopts in command line option processing.
	attbckshare.sh:		Now at version 1.0.7
	bckfulladhoc.sh:	Now at version 1.0.11
	bckfullweekly.sh:	Now at version 1.0.15
	bckincdaily.sh:		Now at version 1.0.18
	detbckshare.sh:		Now at version 1.0.7
	setup.sh:		Now at version 1.0.4

2013-02-06 v 1.0.19 Mark Grant <m.grant.prg@gmail.com>
	* Changed Daily and weekly backup scripts to mail the backup file date
	hierarchy.
	bckfullweekly.sh	Now at version 1.0.14
	bckincdaily.sh		Now at version 1.0.17

2012-12-20 v 1.0.18 Mark Grant <m.grant.prg@gmail.com>
	* Changed backup scripts to have Host name and backup file indicator
	in the email message subject line.
	bckfulladhoc.sh		Now at version 1.0.10
	bckfullweekly.sh	Now at version 1.0.13
	bckincdaily.sh		Now at version 1.0.16

2012-11-06 v 1.0.17 Mark Grant <m.grant.prg@gmail.com>
	* Changed logic to give responsibility to daily backup to delete the
	previous version of that days backup so we now have a full week of
	full + incremental backups.
	bckfullweekly.sh	Now at version 1.0.12
	bckincdaily.sh		Now at version 1.0.15

2012-11-06 v 1.0.16 Mark Grant <m.grant.prg@gmail.com>
	* Reorganised manual pages directory structure in source.

2012-11-06 v 1.0.15 Mark Grant <m.grant.prg@gmail.com>
	* Updated Author email address.
	Moved installation from bindir to sbindir.

2012-11-06 v 1.0.14 Mark Grant <m.grant.prg@gmail.com>
	* attbckshare.sh:	Reverted to use the .sh file extension.
	bckfulladhoc.sh:	Reverted to use the .sh file extension.
				Add exclusion for /run & /var/run to tar
				command following Linux inclusion of the /run
				directory.
	bckfullweekly.sh:	Reverted to use the .sh file extension.
				Add exclusion for /run & /var/run to tar
				command following Linux inclusion of the /run
				directory.
	bckincdaily.sh:		Reverted to use the .sh file extension.
				Add exclusion for /run & /var/run to tar
				command following Linux inclusion of the /run
				directory.
	detbckshare.sh:		Reverted to use the .sh file extension.

2012-01-10 v 1.0.13 Mark Grant <m.grant.prg@btinternet.com>
	* attbckshare:	Removed the .sh extension from the command name.
	bckfulladhoc:	Removed the .sh extension from the command name.
			Add .gvfs file exclusion to support Gnome desktops
			and Ubuntu.
	bckfullweekly:	Removed the .sh extension from the command name.
			Add .gvfs file exclusion to support Gnome desktops
			and Ubuntu.
	bckincdaily:	Removed the .sh extension from the command name.
			Add .gvfs file exclusion to support Gnome desktops
			and Ubuntu.
	detbckshare:	Removed the .sh extension from the command name.

2010-12-16 v 1.0.12 Mark Grant <m.grant.prg@btinternet.com>
	* bckfullweekly.sh: allowed mail of disk usage stats from all OSs
	bckincdaily.sh: allowed mail of disk usage stats from all OSs

2010-12-14 v 1.0.11 Mark Grant <m.grant.prg@btinternet.com>
	* bckfulladhoc.sh: removed invalid switch from df mailx
	bckfullweekly.sh: removed invalid switch from df mailx
	bckincdaily.sh: removed invalid switch from df mailx

2010-11-28 v 1.0.10 Mark Grant <m.grant.prg@btinternet.com>
	* setup.sh: created to setup backups.conf and ~/.nsmbrc file.
	attbckshare.sh: Changed to retrieve parameters from the
	backups.conf and ~/.nsmbrc files

2010-11-23 v 1.0.9 Mark Grant <m.grant.prg@btinternet.com>
	* bckincdaily.sh: remove -g segfault temp fix for Linux

2010-11-21 v 1.0.8 Mark Grant <m.grant.prg@btinternet.com>
	* attbckshare.sh: new man page
	detbckshare.sh: new man page
	bckfulladhoc.sh: new man page
	bckfullweekly.sh: new man page
	bckincdaily.sh: new man page

2010-11-20 v 1.0.7 Mark Grant <m.grant.prg@btinternet.com>
	* attbckshare.sh: man page added.
	detbckshare.sh: man page added.
	bckfulladhoc.sh:man page added.
	bckfullweekly.sh: man page added.
	bckincdaily: man page added.

2010-11-20 v 1.0.6 Mark Grant <m.grant.prg@btinternet.com>

	* bckfullweekly v1.0.6: Removed shutdown.
	bckincdaily v1.0.8: Removed shutdown.

2010-11-18 v1.0.5 Mark Grant <m.grant.prg@btinternet.com>

	* attbckshare.sh introduced.
	detbckshare.sh introduced.
	bckfulladhoc.sh introduced.
	bckfullweekly.sh introduced.
	bckincdaily.sh introduced.