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
4444 index_size=$2
4545
4646 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 "
4748 # Hard link any indices that have not changed since the last backup
4849 ln $GHE_DATA_DIR /current/audit-log/$index_name .gz $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz
4950 ln $GHE_DATA_DIR /current/audit-log/$index_name .gz.size $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz.size
5051 else
52+ ghe_verbose " * Performing audit log export for index: $index_name "
5153 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
5254 echo $index_size > $GHE_SNAPSHOT_DIR /audit-log/$index_name .gz.size
5355 fi
You can’t perform that action at this time.
0 commit comments