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