- 积分
- 6
- 威望
-
- 金钱
-
- 注册时间
- 2015-8-20
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
crontab执行日志:
- Backup website files...
- Backup Databases...
- Delete old backup files...
- Uploading backup files to ftp...
- /home/backup/backup.sh: line 77: cd: /home/backup/
- : No such file or directory
- /home/backup/backup.sh: line 78:
- : command not found
- Usage: rm [-r] [-f] files...
- Usage: rm [-r] [-f] files...
- mput: www-*-20150831.tar.gz: no files found
- mput: db-*-20150831.sql: no files found
- /home/backup/backup.sh: line 87:
- : command not found
- complete.
复制代码 根据这个日志来看是没有找到/home/backup/这个目录,但是确实是这个目录,并且备份是没有问题的,现在的问题就是没有FTP传输备份文件到FTP空间!
如果进入目录手动执行./backup.sh,就没有问题(注释了备份,因为已经备份),传输到FTP没有问题!
看了半天也不知道哪里的问题,军哥帮忙看看...- [root@f2 backup]# ./backup.sh
- Backup website files...
- Backup Databases...
- Delete old backup files...
- Uploading backup files to ftp...
- Usage: rm [-r] [-f] files...
- Usage: rm [-r] [-f] files...
- `db-bbs-20150831.sql' at 1898232740 (64%) 9.12M/s eta:2m [Sending data]
复制代码
[ 本帖最后由 usa 于 2015-8-31 22:11 编辑 ] |
|