full_backup.sql에 루트 유저인 postgres를 삭제하고 다시 생성하는 명령어가 포함되어 있어서 생기는 문제입니다.
Success
postgres를 설정하는 명령어를 삭제하고 재 복원한다.
postgres 설정 명령어 삭제
sed -i.bak \ -e '/^DROP ROLE IF EXISTS postgres;/d' \ -e '/^DROP ROLE postgres;/d' \ -e '/^CREATE ROLE postgres;/d' \ -e '/^ALTER ROLE postgres /d' \ full_backup.sql