DB 백업 쉘 스크립트 오류 문의
미해결
시스템엔지니어가 알려주는 리눅스 실전편 Bash Shell Script
아래와 같이 오류 발생합니다. [00] FATAL ERROR: 2021-12-03 01:56:26 Can't open backup-my.cnf for reading 해결 방법 좀 알려 주세요~ [root@cent2 BACKUP]# ./db_backup.sh 백업 디렉토리가 있어요. 문제없음. [00] 2021-12-03 01:56:26 Connecting to MySQL server host: localhost, user: not set, password: not set, port: not set, socket: not set [00] 2021-12-03 01:56:26 Failed to connect to MySQL server: Access denied for user ''@'localhost' (using password: NO). /usr/bin/mariabackup based on MariaDB server 10.3.28-MariaDB Linux (x86_64) [00] 2021-12-03 01:56:26 cd to /root/SHELL/BACKUP/xtrabackup_backupfiles/ [00] 2021-12-03 01:56:26 open files limit requested 0, set to 1024 [00] FATAL ERROR: 2021-12-03 01:56:26 Can't open backup-my.cnf for reading /usr/bin/tar: Cowardly refusing to create an empty archive Try '/usr/bin/tar --help' or '/usr/bin/tar --usage' for more information. /usr/bin/ls: cannot access '/mnt/BACKUP/cent2/2021.12.03_cent2_DB.tgz': No such file or directory /usr/bin/ls: cannot access '/mnt/BACKUP/cent2/2021.12.03_cent2_DB.tgz': No such file or directory
- mariadb
- 백업
- shell-script
- linux
- 쉘스크립트





