diff options
author | Kevin Hilman <khilman@baylibre.com> | 2020-02-12 15:58:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 15:58:51 -0800 |
commit | 751e6bbf1d651a4c7335c5de03c31074f4cea1ea (patch) | |
tree | 585d5ea195b4de44c9c5cab43a6a7760d78d19ba /lava-master | |
parent | 3e8863a724de93baee3efaf5ea7abbdbd1a11d77 (diff) | |
parent | cccd52d88687294131116f2d1104e001cb58210d (diff) |
Merge pull request #110 from philm06/master
Improve backup handling
Diffstat (limited to 'lava-master')
-rwxr-xr-x | lava-master/entrypoint.d/01_setup.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lava-master/entrypoint.d/01_setup.sh b/lava-master/entrypoint.d/01_setup.sh index 4755bc4..ba81f77 100755 --- a/lava-master/entrypoint.d/01_setup.sh +++ b/lava-master/entrypoint.d/01_setup.sh @@ -17,6 +17,10 @@ if [ -e /root/backup/db_lavaserver ];then yes yes | lava-server manage migrate || exit $? echo "Restore jobs output from backup" rm -r /var/lib/lava-server/default/media/job-output/* + + # allow using different folder for tar operations (/tmp by default) + TMPDIR=${TMPDIR:-/tmp} + tar xzf /root/backup/joboutput.tar.gz || exit $? fi |