码迷,mamicode.com
首页 > 其他好文 > 详细

redis

时间:2019-08-24 09:44:49      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:create   date   tar -zcvf   gitlab   tool   als   script   links   rip   

redis简介

redis是一款非关系型数据库

redis安装

[root@izj6c19rqdk7mfnm5seocuz ~]# ls
a.txt  backup_gitlab.sh  ossutil  P
[root@izj6c19rqdk7mfnm5seocuz ~]# cat backup_gitlab.sh 
#!/bin/bash
BACKUP_FILE_NAME="gitlab_config_$(date -I).tar.gz"
find "/var/opt/gitlab/backups/" -name "*.tar"  -type f -exec rm -rf {} \;
/usr/bin/gitlab-rake gitlab:backup:create 
backfile=$(find /var/opt/gitlab/backups -type f -mtime -1 -name ‘*.tar‘)
tar -zcvf /tmp/${BACKUP_FILE_NAME}  /etc/gitlab
/root/ossutil cp ${backfile}  oss://doo-hk-backups/gitlab/
/root/ossutil cp /tmp/${BACKUP_FILE_NAME}  oss://doo-hk-backups/gitlab/
rm  /tmp/${BACKUP_FILE_NAME}
[root@izj6c19rqdk7mfnm5seocuz ~]#

redis

标签:create   date   tar -zcvf   gitlab   tool   als   script   links   rip   

原文地址:https://www.cnblogs.com/hujinzhong/p/11403302.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!