diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-12-11 10:02:54 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-12-11 10:13:27 +0100 |
commit | 290612eef95ffca9b6c9a28224be6f51c55bddcd (patch) | |
tree | 0745edfd213533ffcf8d38529c39a9a3fad9de6d /lava-master/scripts/setup.sh | |
parent | 5787bbd116b65d4be872dcca76d0049899a53a2d (diff) |
backup: backup also devices files
The current way to do backup assume that slave will be restarted after
each master maintainance.
If master is restarted from backup without slaves restarting bring to
devices files missing.
By backuping devices, a master can be restored from backup without
needing slaves worker to be restarted.
Diffstat (limited to 'lava-master/scripts/setup.sh')
-rwxr-xr-x | lava-master/scripts/setup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lava-master/scripts/setup.sh b/lava-master/scripts/setup.sh index 9864ad2..6153c9d 100755 --- a/lava-master/scripts/setup.sh +++ b/lava-master/scripts/setup.sh @@ -20,6 +20,12 @@ if [ -e /root/backup/db_lavaserver ];then tar xzf /root/backup/joboutput.tar.gz || exit $? fi +if [ -e /root/backup/devices.tar.gz ];then + echo "INFO: Restoring devices files" + tar xzf /root/backup/devices.tar.gz + chown -R lavaserver:lavaserver /etc/lava-server/dispatcher-config/devices +fi + chown -R lavaserver:lavaserver /var/lib/lava-server/default/media/job-output/ # default site is set as example.com |