pg_dump 명령어 $ pg_dump --help pg_dump dumps a database as a text file or to other formats. Usage: pg_dump [OPTION]... [DBNAME] General options: -f, --file=FILENAME output file or directory name -F, --format=c|d|t|p output file format (custom, directory, tar, plain text (default)) -j, --jobs=NUM use this many parallel jobs to dump -v, --verbose verbose mode -V, --version output version information..
Backup yum을 사용하여 gitlab을 설치한 경우 아래의 명령 사용 $ sudo gitlab-rake gitlab:backup:create위 명령을 실행하고 나면 백업된 파일은 /var/opt/gitlab/bakups 폴더에 생성 된다. 소스를 가져다 gitlab을 설치한 경우 아래의 명령 사용 $ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production 복구는 나중에 직접 해본 후 글을 남길 예정... 참고: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md
- Total
- Today
- Yesterday