I was told, i my job, to do a script that creates the backup of all the files that are important to us.
So i created the script, put it in the crontab and it works great.
Now what i want is to write to a file what directories have being copied with date and time.
How can i write to a file the present date and time?
This is the script i have:
echo "Backup OK in Dir /CTA: " date + "%d - %m - %Y at %T" > ./imp.txt
This should write to imp.txt file for example:
Backup OK in Dir /CTA: 28-10-2003 at 03:30:00