Skip to content
Snippets Groups Projects
Commit ad269407 authored by Radim Peša's avatar Radim Peša
Browse files

cmd

parent 556e674d
No related branches found
No related tags found
No related merge requests found
Pipeline #
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"]
# 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
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment