diff options
author | 2019-01-17 13:48:07 -0500 | |
---|---|---|
committer | 2019-01-22 10:46:02 -0500 | |
commit | 090957c44f428e13f4f0898f27e017196ad86fda (patch) | |
tree | 6f5fa96d5ffc17f9c3d6f81d8e0245a209036214 /src/main/scripts/dataSnapshot.sh | |
parent | b81d8172dc1d09acb535b78740e27bfaf0c7dc6d (diff) |
merge of v15 changes to onap
Issue-ID: AAI-2088
Change-Id: I588499af58d0e799d860b2b4362da7c48050fafd
Signed-off-by: LaMont, William (wl2432) <wl2432@us.att.com>
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'src/main/scripts/dataSnapshot.sh')
-rw-r--r-- | src/main/scripts/dataSnapshot.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/scripts/dataSnapshot.sh b/src/main/scripts/dataSnapshot.sh index f380e85..ca3b033 100644 --- a/src/main/scripts/dataSnapshot.sh +++ b/src/main/scripts/dataSnapshot.sh @@ -23,6 +23,15 @@ fi start_date; check_user; source_profile; + +# Only sourcing the file aai-graphadmin-tools-vars for dataSnapshot +# Do not source this for dataRestore or otherwise +# both taking a snapshot and restoring from a snapshot +# will use the same amount of memory but restoring from snapshot +# will use a lot more memory than taking a snapshot +if [ -f "$PROJECT_HOME/resources/aai-graphadmin-tools-vars.sh" ]; then + source $PROJECT_HOME/resources/aai-graphadmin-tools-vars.sh +fi; execute_spring_jar org.onap.aai.datasnapshot.DataSnapshot $PROJECT_HOME/resources/logback.xml "$@" end_date; exit 0 |