svn 备份脚本
[root@hm-vpnserver-196 ~]# cat /root/svnback.sh
#!/bin/bash
tt=$(ls /home/svndata/)
for i in $tt
do
mkdir -p /home/svn_backup/$(date +%F)
svnadmin dump /home/svndata/$i >/home/svn_backup/$(date +%F)/${i}_$(date +%F).dump
find /home/svn_backup/ -mtime +80|xargs rm -f
done
时来天地皆同力,运去英雄不自由