Best IT Documents.com Blog


Sample – Unix – Nightly backup script

Posted in Data Center - SOC - NOC,O S (375) by Guest on the June 28th, 2016

Unix – Nightly backup script

For the nightly backup, UNIX’s find has an option to identify files newer than a named file.
(Tar has a newer than date option but the format doesn’t seem to be documented and I’ve never
found the right format.) I created a zero byte root only readable /etc/installed with a time stamp
just after the end of the last Linux install. A similar marker file could be used following a full
backup which could be done instead of the postinstall tar but this would take a lot more media.

#
#
# Anyone may use or modify this code for any purpose PROVIDED
# that as long as it is recognizably derived from this code,
# that this copyright notice, remains intact and unchanged.
# No warrantees of any kind are expressed or implied.
#
# Most of the time tar is run with the -r, append, option but the
# tar file must first be created before this can be used. Any small
# file in a known location will do hence /etc/shells.
cd /var/local/backup
tar -cvf backup /etc/shells >backup.log
/usr/bin/find /bin -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /etc -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /home -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /lib -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /root -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /usr -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /sbin -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/db -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/gdm -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/lib -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/local/downloads -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/local/logs -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/log -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/named -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/nis -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/preserve -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/state -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log
/usr/bin/find /var/yp -type f -newer /etc/installed -exec tar -rvf backup {} \; >>backup.log

chgrp wheel backup*
chmod 640 backup*
mv backup `date +%y%m%d`.tar
gzip `date +%y%m%d`.tar
mv backup.log `date +%y%m%d`.log

. /usr/local/bin/backup_to_other

 

Sample only – Always verify scripts run on your systems

Comments Off on Sample – Unix – Nightly backup script

Sample – Word – Server Installation Request Process

Posted in Business (600),Data Center - SOC - NOC,O S (375) by Guest on the June 22nd, 2016

Word – Server Installation Request Process

Server_Installation_Request_Process.doc

Comments Off on Sample – Word – Server Installation Request Process

Sample – Word – UNIX Security Checklist

Posted in Data Center - SOC - NOC,O S (375) by Guest on the June 21st, 2016

Word – UNIX Security Checklist

UNIX_Security_Checklist.doc

Comments Off on Sample – Word – UNIX Security Checklist

Sample Word – Sample Software SOW

Posted in Business (600),Data Center - SOC - NOC by Guest on the September 3rd, 2015

Free Word document download

Sample Software SOW

Comments Off on Sample Word – Sample Software SOW

Sample Visio – RSA ESI Servers

Posted in Data Center - SOC - NOC,Security (1500),Visio Samples - Stencils (457) by Guest on the September 2nd, 2015

Free Visio document

RSA ESI Servers

 

Comments Off on Sample Visio – RSA ESI Servers

Sample Excel – Sample Systems Migrated Tracking

Posted in Compliances (1300),Data Center - SOC - NOC,O S (375) by Guest on the August 21st, 2015

Free Excel document download

Sample Systems Migrated Tracking

 

Comments Off on Sample Excel – Sample Systems Migrated Tracking
Next Page »