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
Post a Comment