Open main menu

CDOT Wiki β

Changes

OPS335 A2 Summer 2015 Tips

593 bytes added, 10:07, 7 August 2015
How to test your secondary DNS ?
done
</pre>
= How to create a tar ball file for a list of files from a text file?=
== Text file: pri-dns-file-list ==
<pre>
/etc/named.conf
/var/named/mydomain.db
/var/named/myip-rev.db
</pre>
== Text file: sec-dns-file-list ==
<pre>
/etc/named.conf
</pre>
== Text file: mas-nis-file-list ==
<pre>
/etc/sysconfig/network
/var/yp/Makefile
/var/yp/nisdomain/*
</pre>
== Text file: sla-nis-file-list ==
<pre>
/etc/sysconfig/network
/var/yp/Makefile
</pre>
 
== Backup Script ==
Name: backup.sh
 
Contents:
<pre>
filelist=$1
tarball_file=$(date +%Y%M%D)-master.tar
tar cvf ${tarball_file} -T ${filelist}
</pre>
1,760
edits