Skip to content

Commit

Permalink
Added ServerGrid.ServerOnly.json
Browse files Browse the repository at this point in the history
Added ServerGrid.ServerOnly.json to backup.
Added 2 second delay to redis backup in order to let database dump to file.
  • Loading branch information
BoiseComputer authored Feb 23, 2019
1 parent ac83bce commit 65d8d61
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tools/atlasmanager
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set +o allexport

# Script version
atlasstVersion='1.8'
atlasstTag='v1.8.5.1'
atlasstTag='v1.8.5.2'
atlasstCommit='0d683ea82e0c7f367e0992f0211e07f6f5b45b7c'
atlasstGithubRepo="BoiseComputer/atlas-server-tools"
atlasstRootUseEnv=''
Expand Down Expand Up @@ -1404,6 +1404,7 @@ else
local redisPort=$(sed -n -e 's/\r//g;s/^port //p' "$redis_config_file"); #sed 's/\r//g' is being used to remove a line carriage in the redis.conf file.
redis-cli -p "$redisPort" -a "$redisPassword" bgsave
echo -e "${RED} Please run while server is stopped for max stability${NORMAL}"
sleep 2
mkdir -p "${atlasbackupdir}/${daystamp}/"
tar -jcf "${atlasbackupdir}/${daystamp}/${redisDBFilename}.${datestamp}.tar.bz2" "${redisBackupPath}/${redisDBFilename}" "$redis_config_file"
echo -ne "${NORMAL} Compressing Backup "
Expand Down Expand Up @@ -3030,6 +3031,24 @@ doBackup(){
echo -e "${NORMAL}\e[68G[ ${RED}FAILED${NORMAL} ]"
fi
fi
if [ -z "$atlas_GridConfig" ]; then
echo -ne "${NORMAL} Copying ServerGridServerOnly.json "
cp -p "${atlasserverroot}/ShooterGame/ServerGridServerOnly.json" "${backupdir}/ServerGrid.ServerOnly.json"
if [ -f "${backupdir}/"ServerGrid.ServerOnly.json ]; then
echo -e "${NORMAL}\e[68G[ ${GREEN}OK${NORMAL} ]"
else
echo -e "${NORMAL}\e[68G[ ${RED}FAILED${NORMAL} ]"
fi
else
local gridName=${atlas_GridConfig%".json"}
echo -ne "${NORMAL} Copying ${gridName}.ServerOnly.json "
cp -p "${atlasserverroot}/ShooterGame/${gridName}.ServerOnly.json" "${backupdir}/${gridName}.ServerOnly.json"
if [ -f "${backupdir}/${gridName}.ServerOnly.json" ]; then
echo -e "${NORMAL}\e[68G[ ${GREEN}OK${NORMAL} ]"
else
echo -e "${NORMAL}\e[68G[ ${RED}FAILED${NORMAL} ]"
fi
fi
if [ -z "$atlas_GridConfig" ]; then
echo -ne "${NORMAL} Copying ServerGrid Map Images "
cp -pR "${atlasserverroot}/ShooterGame/ServerGrid" "${backupdir}/"
Expand Down

0 comments on commit 65d8d61

Please sign in to comment.