2.6 Summary of the snapshot tracking scripts
As extensively shown in the previous sections, you will run the following scripts for the normal day-to-day operations.
- 'chk' retrieves the SHA256 files and listings of the installation file sets and packages.
- 'differ' shows which mirror has a copy of the latest snapshot. If a match is reported, use 'differ -v' or 'differ -v | less' to get a detailed view.
- 'show' produces a comparative summary of the ftp mirror status.
- 'pkg-mirror-complete' diagnoses the coherence of the packages directory.
- 'pkg-differ' compares packages directory coherence of a mirror with the master ftp site.
- 'backup' creates a backup of the previously retrieved data in the PREV directory.
The retrieved data from the ftp mirrors is in normal human readable text format. and is stored in the directories NOW, PREV and the S<time stamp>* backup directories. Feel free to use a browser like
'lynx' or plain old
'less' to investigate them.
Code:
$ ls -l
-rw-r--r-- 1 j65 j65 7415 Nov 29 21:21 Logfile
drwxr-xr-x 2 j65 j65 512 Nov 29 21:21 NOW
lrwxr-xr-x 1 j65 j65 21 Nov 29 21:20 PREV -> S2009-11-27_20:49_UTC
drwxr-xr-x 2 j65 j65 512 Nov 21 21:49 S2009-11-05_21:53_UTC
drwxr-xr-x 2 j65 j65 512 Nov 27 21:49 S2009-11-21_20:49_UTC
drwxr-xr-x 2 j65 j65 512 Nov 29 21:20 S2009-11-27_20:49_UTC
lrwxr-xr-x 1 j65 j65 9 Jan 8 2009 backup -> ../backup
lrwxr-xr-x 1 j65 j65 6 Jan 8 2009 chk -> ../chk
lrwxr-xr-x 1 j65 j65 13 Jan 8 2009 chk-latest -> ../chk-latest
lrwxr-xr-x 1 j65 j65 9 Jan 8 2009 differ -> ../differ
lrwxr-xr-x 1 j65 j65 8 Jan 8 2009 fnice -> ../fnice
lrwxr-xr-x 1 j65 j65 11 Jan 8 2009 mk-netrc -> ../mk-netrc
lrwxr-xr-x 1 j65 j65 13 Jan 8 2009 pkg-differ -> ../pkg-differ
lrwxr-xr-x 1 j65 j65 22 Jan 8 2009 pkg-mirror-complete -> ../pkg-mirror-complete
-rw-r--r-- 1 j65 j65 2150 Oct 22 03:26 rc.machines
lrwxr-xr-x 1 j65 j65 7 Jan 8 2009 show -> ../show
The NOW directory, containing the latest retrieved checksum files and listings
Code:
total 2356
-rw-r--r-- 1 j65 j65 21 Nov 29 21:20 DATE
-rw-r--r-- 1 j65 j65 2084 Nov 28 06:43 SHA256
-rw-r--r-- 1 j65 j65 2084 Nov 28 06:43 SHA256-stockholm
-rw-r--r-- 1 j65 j65 2084 Nov 28 06:43 SHA256-vienna
-rw-r--r-- 1 j65 j65 953 Nov 29 21:20 latest
-rw-r--r-- 1 j65 j65 953 Nov 29 21:20 latest-stockholm
-rw-r--r-- 1 j65 j65 953 Nov 29 21:21 latest-vienna
-rw-r--r-- 1 j65 j65 272857 Nov 29 21:20 latest_pkg
-rw-r--r-- 1 j65 j65 272857 Nov 29 21:20 latest_pkg-stockholm
-rw-r--r-- 1 j65 j65 272857 Nov 29 21:21 latest_pkg-vienna
In the next section we will give detailed steps how to install the scripts, and how to generate the
'.netrc' file.