Hi I am a newbie trying to make a script to backup a given file. All I
want to do is copy a given file to a /usr/backups directory however I
need to rename the file so that it doesn't over-write a previous
backup. I think either a random number or the date and time appended
to the filename would do the trick... but the problem is the date and
time returned by the OS contains :'s and /'s and spaces which are not
allowed.
I confess I am actually using Cygwin under windows! I am using Cygwin
because Microsoft batch files I beleive don't even have the power to
do something even this simple!
Any help appreciated,
Cheers Tim