add time to file name

add time to file name

 echo 123 > $(date +"%Y%m%d_%H%M%S").now;

 

mv /mnt/mongodb_data/data /mnt/mongodb_data/data$(date +"%Y%m%d_%H%M%S")


posted @ 2017-11-22 07:51  papering  阅读(166)  评论(0)    收藏  举报