Skip to content

Commit

Permalink
Merge pull request #6662 from Ocelot-Social-Community/6661-fix-backup…
Browse files Browse the repository at this point in the history
…-script-for-neo4j-v4

fix(other): fix backup script for neo4j v4
  • Loading branch information
Tirokk authored Sep 12, 2023
2 parents d9b7d10 + a257e99 commit ab95d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/scripts/cluster.backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sleep 60
# database backup
kubectl --kubeconfig=${KUBECONFIG} -n default exec -it \
$(kubectl --kubeconfig=${KUBECONFIG} -n default get pods | grep ocelot-neo4j | awk '{ print $1 }') \
-- neo4j-admin dump --to=/var/lib/neo4j/$BACKUP_DATE-neo4j-dump
-- neo4j-admin dump --database=graph.db --to=/var/lib/neo4j/$BACKUP_DATE-neo4j-dump
# copy neo4j backup to local drive
kubectl --kubeconfig=${KUBECONFIG} cp \
default/$(kubectl --kubeconfig=${KUBECONFIG} -n default get pods | grep ocelot-neo4j |awk '{ print $1 }'):/var/lib/neo4j/$BACKUP_DATE-neo4j-dump $BACKUP_FOLDER/neo4j-dump
Expand Down

0 comments on commit ab95d82

Please sign in to comment.