OSS 备份上传,本地没有保留 web 的备份文件

问答中心分类: OneinStackOSS 备份上传,本地没有保留 web 的备份文件
sectown asked 6 年 ago
OSS 备份上传,本地没有保留 web 的备份文件
是 backup.sh 文件中的  rm -rf $PUSH_FILE 导致的吗?
要怎么解决?
Question Tags:

7 Answers
oneinstack answered 6 年 ago
同时选择本地和oss备份即可

sectown answered 6 年 ago
还是不行,本地的DB 备份是有点,但是WEB的备份还是没有
最开始那边选择 backup destination 的时候,我是选择 13 的

oneinstack answered 6 年 ago
如果网站根目录大于1G,是不会压缩,防止压缩导致网站中断。

Dull answered 6 年 ago
我刚刚也备份了,确实是只备份了数据库,没备份网站文件

Dull answered 6 年 ago
我刚刚也备份了,确实是只备份了数据库,没备份网站文件,下面是我的输入

Please select your backup destination:
	1. Localhost
	2. Remote host
	3. Aliyun OSS
	4. Qcloud COS
	5. UPYUN(又拍云)
Please input a numberDefault 1 press Enter) 13

Please select your backup content:
	1. Only Database
	2. Only Website
	3. Database and Website
Please input a numberDefault 1 press Enter) 3

Pleas enter a valid backup number of days: 
(Default days: 5): 5
mysql: [Warning] Using a password on the command line interface can be insecure.

Please enter one or more name for database, separate multiple database names with commas: 
(Default database: catch_blog,wp_edaoe,wp_oris) 

Please enter one or more name for website, separate multiple website names with commas: 
(Default website: cdn.edaoe.com,default,www.edaoe.com) www.edaoe.com

You have to backup the content:
Database: catch_blog,wp_edaoe,wp_oris
Website: www.edaoe.com

Please select your backup datacenter:
	 1. cn-hangzhou-华东 1 (杭州)         2. cn-shanghai-华东 2 (上海)
	 3. cn-qingdao-华北 1 (青岛)          4. cn-beijing-华北 2 (北京)
	 5. cn-zhangjiakou-华北 3 (张家口)    6. cn-huhehaote-华北 5(呼和浩特)
	 7. cn-shenzhen-华南 1 (深圳)         8. cn-hongkong-香港
	 9. us-west-美西 1 (硅谷)            10. us-east-美东 1 (弗吉尼亚)
	11. ap-southeast-亚太东南 1 (新加坡) 12. ap-southeast-亚太东南 2 (悉尼)
	13. ap-southeast-亚太东南 3 (吉隆坡) 14. ap-northeast-亚太东北 1 (日本)
	15. eu-central-欧洲中部 1 (法兰克福) 16. me-east-中东东部 1 (迪拜)
Please input a numberDefault 1 press Enter) 4

Please enter the aliyun oss Access Key ID: ********隐藏*****

Please enter the aliyun oss Access Key Secret: ********隐藏*****

Please enter the aliyun oss bucket: backup-edaoe-com
[backup-edaoe-com] createbucket OK
[root@izbp18yfs65r3cmkji5j14z oneinstack]# ./backup.sh
mysql: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
/data/backup ~/oneinstack/tools
mysql: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
/data/backup ~/oneinstack/tools
mysql: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
/data/backup ~/oneinstack/tools
mysql: [Warning] Using a password on the command line interface can be insecure.
Succeed: Total num: 1, size: 1,997. OK num: 1(upload 1 files).           
0.165734(s) elapsed
Succeed: Total 0 objects. Removed 0 objects.
0.137097(s) elapsed                          
mysql: [Warning] Using a password on the command line interface can be insecure.
Succeed: Total num: 1, size: 423,217. OK num: 1(upload 1 files).             
2.139435(s) elapsed
Succeed: Total 0 objects. Removed 0 objects.
0.160291(s) elapsed                          
mysql: [Warning] Using a password on the command line interface can be insecure.
Succeed: Total num: 1, size: 39,210. OK num: 1(upload 1 files).            
0.157490(s) elapsed
Succeed: Total 0 objects. Removed 0 objects.       
0.153499(s) elapsed                                
Succeed: Total num: 1, size: 83,046,509. OK num: 1(upload 1 files).                
616.342205(s) elapsed
Succeed: Total 0 objects. Removed 0 objects.       
0.176483(s) elapsed                                
[root@izbp18yfs65r3cmkji5j14z oneinstack]# cd /root
[root@izbp18yfs65r3cmkji5j14z ~]# cd /data
[root@izbp18yfs65r3cmkji5j14z data]# ll
total 16
drwxr-xr-x 2 root  root  4096 May  3 20:51 backup
drwxr-xr-x 8 mysql mysql 4096 May  3 10:27 mysql
drwxr-xr-x 2 root  root  4096 May  3 09:51 wwwlogs
drwxr-xr-x 5 www   www   4096 May  3 20:16 wwwroot
[root@izbp18yfs65r3cmkji5j14z data]# cd backup/
[root@izbp18yfs65r3cmkji5j14z backup]# ll
total 468
-rw-r--r-- 1 root root   1997 May  3 20:40 DB_catch_blog_20180503_20.tgz
-rw-r--r-- 1 root root    814 May  3 20:41 db.log
-rw-r--r-- 1 root root 423217 May  3 20:40 DB_wp_edaoe_20180503_20.tgz
-rw-r--r-- 1 root root  39210 May  3 20:40 DB_wp_oris_20180503_20.tgz
-rw-r--r-- 1 root root    135 May  3 20:41 web.log

Dull answered 6 年 ago
需要看的话,可以联系我:QQ 497349139;用的阿里云的服务器

oneinstack answered 6 年 ago
已经修复,请尝试./upgrade.sh oneinstack 之后重试!