Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sql-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DBoD
administration
sql-backup
Commits
c3df53e1
Commit
c3df53e1
authored
2 years ago
by
Hannes Braun
Browse files
Options
Downloads
Patches
Plain Diff
Added check to installation script, if JSON parser is installed. Updated README.md.
parent
e0a61148
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+11
-0
11 additions, 0 deletions
README.md
install.sh
+6
-0
6 additions, 0 deletions
install.sh
with
17 additions
and
0 deletions
README.md
+
11
−
0
View file @
c3df53e1
...
@@ -5,6 +5,17 @@ It comes with a built-in mechanism to check and delete old backups.
...
@@ -5,6 +5,17 @@ It comes with a built-in mechanism to check and delete old backups.
## Installing / Getting started
## Installing / Getting started
### Requirements
#### OS
This project is developed and tested under Debian 11 Bullseye.
#### JSON Parser
The script is loading its needed configuration from a JSON file. Therefor a JSON parser is needed.
In this project, the parser 'jq' is being used. It can be installed via the default Debian repository.
Clone the repository and execute the installation script.
Clone the repository and execute the installation script.
```
shell
```
shell
...
...
This diff is collapsed.
Click to expand it.
install.sh
+
6
−
0
View file @
c3df53e1
...
@@ -10,6 +10,12 @@ else
...
@@ -10,6 +10,12 @@ else
cd
/opt/sql-backup
cd
/opt/sql-backup
fi
fi
# Check if jqis installed
if
[
-z
$(
which apt
)
]
;
then
echo
"ERROR: JSON parser 'jq' not found, but necessary. Make sure that 'jq' is installed correctly."
exit
1
fi
# Update repository
# Update repository
bash update.sh
bash update.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment