From e97ffb7b3e1516eebce6dfdae2b8081222932a5c Mon Sep 17 00:00:00 2001 From: Julian van de Groep Date: Mon, 11 Feb 2019 16:21:18 +0100 Subject: [PATCH] Added cron flag to script. --- README.md | 6 ++++++ do-backup.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c735a4..a1cb3bc 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,9 @@ This is the program that runs every day at 12:00 AM UTC and backs up the non-volatile user data from [Flashii](https://flashii.net). Provided for transparency. + +## Grant line for MySQL backup user + +``` +GRANT SELECT, LOCK TABLES, SHOW VIEW, EVENT, TRIGGER, EXECUTE ON *.* TO 'user'@'localhost'; +``` diff --git a/do-backup.sh b/do-backup.sh index b43d0c3..ca7cc0e 100644 --- a/do-backup.sh +++ b/do-backup.sh @@ -1,3 +1,3 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1 -dotnet run --project BackupManager -c Release -f netcoreapp2.2 +dotnet run --project BackupManager -c Release -f netcoreapp2.2 -- -cron