一键备份几个重要文件到sshdfs的Ubuntu

一键备份几个重要文件到sshdfs的Ubuntu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
@echo on&cls&mode con cols=50 lines=30 &color    0a 

title=复制

xcopy I:\other_need_back_to_oss U:\BTdata\wwwroot\other_need_back_to_oss /y /e

xcopy I:\ssh_rsa U:\BTdata\wwwroot\ssh_rsa /y /e

xcopy "I:\备份重要文件到ubuntu再到oss.bat" "U:\BTdata\wwwroot\备份重要文件到ubuntu再到oss.bat"  /y /e




echo "修改权限"

pause

ssh bt "chmod -R 777 /BTdata/wwwroot/;chown -R www:www chmod -R 777 /BTdata/wwwroot/ "


pause 
comments powered by Disqus