shell - Linux command - adding Time elements to file name -


i run regular backups of phpbb forum files command line:

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

i'd add hour , minutes file name (24 hour clock, sync'd pacific standard time, if possible). how that?

ummm ...

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

man date details.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -