Date as a directory name
Hello,
Everyday I need to make a backup of certain files on my system (I have set up cron job for this).
Can I somehow put a formatted current data as an argument for "cp" command? E.g. I would like to run a "cp ... /backup/2010_12_01" on December, 1st.
As of now, it seems easier for me to write a perl script for this, but I am sure there is an elegant commandline solution for this, can you tech me?
Thank you!
|