You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Table of Contents

Instructions

mkdir /home/backups

chmod 0700 /home/backups && chown root:root /home/backups

nano /home/scripts/backupfiles

chmod +x /home/scripts/backupfiles

cd /usr/sbin && ln -s /home/scripts/backupfiles .

The script

d=`date "+%m%d%y"`
cp /etc/samba/smb.conf{,.$d}
cp /etc/krb5.conf{,.$d}
mkdir /etc/pam.d/backup
cd /etc/pam.d/
for file in `ls`;do cp $file{,.$d}; done
mv *.$d backup/
  • No labels