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

Exit if mysqldump is not found #18

Open
fauust opened this issue Sep 9, 2024 · 0 comments
Open

Exit if mysqldump is not found #18

fauust opened this issue Sep 9, 2024 · 0 comments

Comments

@fauust
Copy link

fauust commented Sep 9, 2024

Hi!
I am moving local storage to s3 (https://garagehq.deuxfleurs.fr) using your tool.

So far so good but I would suggest that the script exit if the DB backup did not worked as expected (or verify in the script that requirements are available):

set  maintenance:mode --on:
Maintenance mode enabled

database backup...sh: mysqldump: not found

(to restore: mysql -u nextcloud -p nextcloud < backup.sql)

backup config.php...
connect to S3...

I am not good at PHP so I cannot propose a PR.

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

1 participant