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?
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)?