#!/bin/bash DATUM=`/bin/date +'%d-%m-%Y_%H%M'` cd /var/log/httpd/domains /bin/mv logfile.log logfile.log.${DATUM} /usr/sbin/apachectl graceful