Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-neo4j-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
europdx
LAS
docker-neo4j-backup
Commits
ad269407
There was a problem fetching the pipeline summary.
Commit
ad269407
authored
7 years ago
by
Radim Peša
Browse files
Options
Downloads
Patches
Plain Diff
cmd
parent
556e674d
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+3
-2
3 additions, 2 deletions
Dockerfile
README.md
+10
-0
10 additions, 0 deletions
README.md
backup.sh
+6
-1
6 additions, 1 deletion
backup.sh
with
19 additions
and
3 deletions
Dockerfile
+
3
−
2
View file @
ad269407
FROM
alpine
MAINTAINER
Radim Pesa <pesa@ics.muni.cz>
LABEL
maintainer="pesa@ics.muni.cz"
COPY
backup.sh /backup.sh
RUN
chmod
+x /backup.sh
CMD
["/backup.sh"]
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
10
−
0
View file @
ad269407
# Docker-neo4j-backup
Usage:
<code>
docker run -v path_1:/backup -v volume_1:/neodata backup
</code>
where
<code>
path_1
</code>
is host directory where backups should be stored
<code>
volume_1
</code>
is volume which should be backuped
\ No newline at end of file
This diff is collapsed.
Click to expand it.
backup.sh
+
6
−
1
View file @
ad269407
#!/bin/sh
cp
-R
/neodata/
*
/backup
NOW
=
$(
date
+
"%F"
)
NOWT
=
$(
date
+
"%T"
)
BACKUP_DIR
=
/backup/neo4j/
$NOW
/
$NOWT
mkdir
-p
$BACKUP_DIR
tar
-zcvf
$BACKUP_DIR
/neo4j.tgz /neodata/
*
\ No newline at end of file
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