save the below script
vim backup_script
———————————
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
cd /data # Moving to the /data directory
mkdir `date +%Y%m%d` #Create a directory on today date
cd `date +%Y%m%d`
tar –create \
–file=var.tar.gz \
–listed-incremental=/data/var.snar-1 \
/var
—————————–
Esc + wq!
#chmod +x backup_script
#crontab -e
10 00 * * * /root/backu_script #script will run on everyday night 12.10 AM.
RHEL5
open database /etc/postfix/sasl_passwd.db: No such file or directory
by sahab on Feb.11, 2013, under RHEL5, Ubuntu
run the below command
#postmap /etc/postfix/sasl_passwd
It will create sasl_passwd.db file in /etc/postfix/ directory
How to take full and incremental backup every day using tar command
by sahab on Feb.11, 2013, under RHEL5, Ubuntu
Backup directory /var
Mount point /data
Operating system – centos 6
Perform daily backup using the script and schedular using the cron tab.