Keep log files by copying into new directory unix
cp -pR logs logs`date +$d%m%y%T`
Creates a timestamped copy directory named like “logs041015:44:42”.
cp -pR logs logs`date +$d%m%y%T`
Creates a timestamped copy directory named like “logs041015:44:42”.
Leave a Reply