Maybe not exactly what you're looking for, but take a look at the --backup option of
mv. You can select
--backup=numbered to make a numbered copy of the destination file, if it already exists. However, the format will be:
You can also customize the suffix, for example by putting the current date in the name of the backup:
Code:
mv --backup=simple --suffix=$(date +%Y%m%d%H%M%S) <source> <destination>
but in this case if you want to do a numbered copy you have to deal with the assignment of the correct progressive number and things are more complicate. In other words you cannot use automatic numbered backup and suffix customization at the same time.