today=`date +%Y%m%d%H%m` echo rsync archiving activated on $today echo PATH = $PATH # a for archive # b for backup # v for verbose /usr/local/bin/rsync -abv --suffix=.$today /etc/ /usr/local/backup/cllee/RedHat/etc # no backup for log files as they get big very fast /usr/local/bin/rsync -av --suffix=.$today /var/log/ /usr/local/backup/cllee/RedHat/var/log # files in the root directory /usr/local/bin/rsync -abv --suffix=.$today /root/ /usr/local/backup/cllee/RedHat/root