还是无法备份的问题,检查了不知道出错在哪儿

问答中心分类: OneinStack还是无法备份的问题,检查了不知道出错在哪儿
fingon asked 8 年 ago
 
options.conf
我检查过密码是正确的,不知道不带'是否影响
# operating environment for the current working directory
oneinstack_dir=
# Nginx Apache and PHP-FPM process is run as $run_user(Default "www"), you can freely specify
run_user=www
# set the default install path, you can freely specify
nginx_install_dir=/usr/local/nginx
tengine_install_dir=/usr/local/tengine
openresty_install_dir=/usr/local/openresty
apache_install_dir=/usr/local/apache
tomcat_install_dir=/usr/local/tomcat
mysql_install_dir=/usr/local/mysql
mariadb_install_dir=/usr/local/mariadb
percona_install_dir=/usr/local/percona
alisql_install_dir=/usr/local/alisql
php_install_dir=/usr/local/php
pureftpd_install_dir=/usr/local/pureftpd
memcached_install_dir=/usr/local/memcached
redis_install_dir=/usr/local/redis
python_install_dir=/usr/local/python
#########################################################################
# database data storage directory, you can freely specify
mysql_data_dir=/data/mysql
mariadb_data_dir=/data/mariadb
percona_data_dir=/data/percona
alisql_data_dir=/data/alisql
# web directory, you can customize
wwwroot_dir=/data/wwwroot
# nginx Generate a log storage directory, you can freely specify.
wwwlogs_dir=/data/wwwlogs
#########################################################################
# automatically generated, You can't change
dbrootpwd=w(隐去中间密码)7
#########################################################################
# Backup Dest directory, change this if you have someother location
backup_dir=/data/backup
# How many days before the backup directory will be removed
expired_days=5
# local ; remote ; local,remote
backup_destination=local,remote
# db ; web, You can't change
backup_content=db,web
# aliyun OSS Bucket, You can't change
oss_bucket=
# The backup of the database, You can't change
db_name=mt
# The backup of the website, You can't change
website_name=(隐去域名).cn

 
 
备份时间为凌晨2点,这是2点到3点的cron log

Start your code hereDec 7 02:00:02 zj2019ssd CROND[16543]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 7 02:00:02 zj2019ssd CROND[16544]: (root) CMD (cd ~/oneinstack;./backup.sh > /dev/null 2>&1 &
Dec 7 02:01:01 zj2019ssd CROND[16549]: (root) CMD (run-parts /etc/cron.hourly)
Dec 7 02:01:01 zj2019ssd run-parts(/etc/cron.hourly)[16549]: starting 0anacron
Dec 7 02:01:01 zj2019ssd anacron[16558]: Anacron started on 2016-12-07
Dec 7 02:01:01 zj2019ssd anacron[16558]: Will run job `cron.monthly' in 82 min.
Dec 7 02:01:01 zj2019ssd anacron[16558]: Jobs will be executed sequentially
Dec 7 02:01:01 zj2019ssd run-parts(/etc/cron.hourly)[16560]: finished 0anacron
Dec 7 02:10:01 zj2019ssd CROND[16563]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 7 02:20:01 zj2019ssd CROND[16568]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 7 02:30:01 zj2019ssd CROND[16573]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 7 02:40:01 zj2019ssd CROND[16580]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 7 02:50:01 zj2019ssd CROND[16584]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 7 03:00:01 zj2019ssd CROND[16589]: (root) CMD (/usr/lib64/sa/sa1 1 1)

backup.sh的权限是root 755
 

3 Answers
oneinstack answered 8 年 ago
信息太少看不出来问题,手工触发是否可以备份?

fingon answered 8 年 ago
试了下,日,密码里带有括号造成无法识别
syntax error near unexpected token `('
 
我设置了下明日凌晨的crontab自动备份,明天起床看看结果

fingon answered 8 年 ago
好了,解决了,确实是随机生成密码的黑锅