用tar来备份

#!/bin/sh
DATE=`date +%Y-%m-%d-%H`
cd /
tar czvf /bak/home.$DATE.tar.gz /home#!/bin/sh
DATE=`date +%Y-%m-%d-%H`
cd /
tar czvf /bak/home.$DATE.tar.gz /home