Linux zip command - adding date elements to file name -


occasionally run backup of phpbb forum files shell command line:

zip -r forum_backup ~/public_html/forum/*

i'd add date elements file name, zip file created automatically formed as

forum_backup_05182013.zip 

any other similar current date format acceptable

now=$(date +"%m%d%y") zip -r forum_backup_$now ~/public_html/forum/ 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -