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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -