백업이 저장될 폴더 만들고 /var/cron_backup 퍼미션 조정chmod 700 /var/cron_backup 백업 스크립트 작성cd /rootvi backup.sh 파일 압축 백업 (tar 압축pg_dump postgresql 디비 덤프10일이 지난 파일은 찾아서 삭제) #!/bin/bash tar -czpf /var/cron_backup.`date +%Y%m%d%H%M%S`.tgz /home/fugle 1>/dev/null 2>/dev/null PGPASSWORD="비밀번호" pg_dump -U 아이디 디비이름 > /var/cron_backup/toondere.`date +%Y%m%d%H%M%S`.sql find /var/cron_backup/ -type f -mtime +10 | sort | ..
문제 root@joeylee:~# sudo -u postgres psql template1 sudo: unable to execute /usr/bin/psql: Permission denied sudo: unable to execute /usr/bin/psql: Permission denied우분투 PostgreSQL 설치 중 postgres 계정으로 psql 실행이 안되는 현상 발생 root@joeylee:~# chmod a+x /usr/bin/perl root@joeylee:~# sudo -u postgres psql template1psql (9.3.11) Type "help" for help. template1=# → 전체에 /usr/bin/perl 실행권한 부여→ psql 실행이 잘 됨
- Today
- Yesterday
- Observer Pattern
- LAMBDA
- Effective JAVA
- template
- 부하테스트
- JMeter
- Concurrecy
- reactive
- Java
- Redis
- Spring
- Serialize
- Design Pattern
- object
- concurrency
- 메인보드#asrock b650m #조립pc #후기이벤트
- nosql
- Serializable
- template method
- jvm
- in-memory
- 디자인패턴
- strategy
- iterable
- 영속성
- observable
- gslb
- jdk11
- exception
- reactive stream
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |