代码如下:

#!/bin/bash
cd /home/raid_4t/100_hexo/blog/
tar -cpzf /home/raid_4t/100_hexo/bak/blog_$(date +%Y%m%d-%H%M).tar.gz *