1,760
edits
Changes
→Phase 3 - Automated Back-ups
# run a shell script 1 minute after midnight to package all configuration files and database files into a tar ball file. Name the tar ball file as <date>-primary.tar for all the files for your primary DNS server, <date>-secondary.tar for your secondary DNS server, and <date>-master.tar for your master NIS server, and <date>-slave.tar for your slave NIS server. Pull the tar ball files to the corresponding directory on the backup server.
# Create a status file in the corresponding backup directory to indicate when the backup tar ball file was created and when it was successfully backup to the backup server..
=== Sample Directory Structure on the backup server ===
The following listing show the directory structure on the backup server after three successful backups on July 1, July 2, and July 3:
<pre>
/backup
├── mas-nis
│ ├── 20150701-bu-status
│ ├── 20150701-master.tar
│ ├── 20150702-bu-status
│ ├── 20150702-master.tar
│ ├── 20150703-bu-status
│ └── 20150703-master.tar
├── pri-dns
│ ├── 20150701-bu-status
│ ├── 20150701-primary.tar
│ ├── 20150702-bu-status
│ ├── 20150702-primary.tar
│ ├── 20150703-bu-status
│ └── 20150703-primary.tar
├── sec-dns
│ ├── 20150701-bu-status
│ ├── 20150701-secondary.tar
│ ├── 20150702-bu-status
│ ├── 20150702-secondary.tar
│ ├── 20150703-bu-status
│ └── 20150703-secondary.tar
└── sla-nis
├── 20150701-bu-status
├── 20150701-slavs.tar
├── 20150702-bu-status
├── 20150702-slavs.tar
├── 20150703-bu-status
└── 20150703-slavs.tar
4 directories, 24 files
</pre>
= Important =