#!/bin/bash # SETTING TOEMAIL="cxhjj@163.com"; COMMENT='test home www backup' DIR='svn' # END SETTING TMP='/tmp/diabak/'${DIR} ATTTMP='/tmp/diabakatt/'${DIR} rm -rf $TMP mkdir -p $TMP cd $TMP # Put files what you want to backup to $TMP cp -r /home/www/ $TMP # …