Msg#: 3525894 posted 2:51 pm on Dec 12, 2007 (gmt 0)
I have a simple cron job for rotating backup files. It is run by a script. I see it running, but it is not actually rotating the files. Probably something stupid I am missing, like a flag to the copy "cp" command, but I do not know what it is. Anybody want to look at my script and see what they think?
Msg#: 3525894 posted 1:54 pm on Dec 14, 2007 (gmt 0)
Some thoughts: Does the command work if you run it from the command line? Does the cron user have the necessary permissions to overwrite existing files? What is the output of cp -v /hd2/backups/#*$!.tar /hd2/backups/#*$!1.tar (-v for being verbose)?