Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i backup and restore. #35

Closed
m-onda opened this issue Sep 25, 2020 · 3 comments
Closed

how can i backup and restore. #35

m-onda opened this issue Sep 25, 2020 · 3 comments

Comments

@m-onda
Copy link

m-onda commented Sep 25, 2020

  • Automatic backup doesn't seem to work.
  • When I executed alminium restore directly in docker container, I got a permission error when restoring db.
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
@ayapapa
Copy link
Owner

ayapapa commented Oct 9, 2020

Thank you. I will do my best.

@ayapapa
Copy link
Owner

ayapapa commented Mar 29, 2021

バックアップエラーは権限の問題でした。これについては、解決済。
自動バックアップが動作しない件は、別issue #37 で上げていただいているので、そちらで対応します。

@ayapapa
Copy link
Owner

ayapapa commented Apr 5, 2021

backup/restore方法ですが、例えば、以下のようにして、実行することが出来ます。(後日、readmeに記載しておきます)

バックアップ:

sudo docker exec -it dockeralminium_ALMinium_1 bash backup

リストア:

sudo docker exec -it dockeralminium_ALMinium_1 bash restore # 引数無しの場合、バックアップファイルリストが表示されます
第1引数にバックアップファイルを指定してください。
以下は、デフォルトバックアップディレクト配下の候補です。
/var/opt/alminium-backup/2021-04-05-05-12-32-alm-backup.tar.gz
# ここで、特定のバックアップファイルを指定します(ファイル名だけでOK)
sudo docker exec -it dockeralminium_ALMinium_1 bash restore 2021-04-05-05-12-32-alm-backup.tar.gz
...   # 警告ログが出ますが、とりあえず、無視しておいてください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants