Closed fapo85 closed 4 years ago
This doesn't include tribes (*.arktribe
), tribute tribes (*.arktributetribe
) or, mod persistent info (SaveGames
).
Also, I wonder if it might be more concise to use something like:
local restorePath=
case "${file}" in
SaveGames/*) # mod persistent info
restorePath="${saverootdir}"
;;
*.ini) # ini are the config files
restorePath="${savedcfgdir}"
;;
*.ark|*.arkprofile|*.arktribe|*.arktributetribe) # ark file in savedir
restorePath="${savedir}"
;;
esac
if [ -n "${restorePath}" ]; then
tar -xjvf "${backupFile}" -C "${restorePath}" --strip-components=1 "${file}"
fi
Also make sure you quote any variable expansions that could have a space in them.
This doesn't include tribes (
*.arktribe
), tribute tribes (*.arktributetribe
) or, mod persistent info (SaveGames
). Also, I wonder if it might be more concise to use something like:
So, is this a ready-to-use feature or still in beta?
This is in 1.6.53
as required in issue 1056 among others, I have implemented a function to restore a backup.