File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ for index in $indices; do
44
44
index_size=$2
45
45
46
46
if [[ -f $GHE_DATA_DIR /current/audit-log/$index_name .gz && $( cat $GHE_DATA_DIR /current/audit-log/$index_name .gz.size 2> /dev/null || true) -eq $index_size ]]; then
47
+ ghe_verbose " * Linking unchanged audit log index: $index_name "
47
48
# Hard link any indices that have not changed since the last backup
48
49
ln $GHE_DATA_DIR /current/audit-log/$index_name .gz $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz
49
50
ln $GHE_DATA_DIR /current/audit-log/$index_name .gz.size $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz.size
50
51
else
52
+ ghe_verbose " * Performing audit log export for index: $index_name "
51
53
echo " /usr/local/share/enterprise/ghe-es-dump-json \" http://localhost:9201/$index_name \" | gzip" | ghe-ssh " $host " -- /bin/bash > $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz
52
54
echo $index_size > $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz.size
53
55
fi
You can’t perform that action at this time.
0 commit comments