From 6d835862d1da138e02afd6210eb1f80df02e25b9 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 23 Dec 2019 13:04:31 +1000 Subject: Fork the tarballing of results_old. --- apt-panopticon.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 1675e73..f4613ea 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -974,7 +974,7 @@ else local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") local adt = fadt:read('*l') fadt:close() - if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz') end + if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end local dt = os.date('!%Y-%m-%d-%H-%M') local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r') local odt = fodt:read('*l') @@ -1027,6 +1027,7 @@ else end end + while 1 <= APT.checkExes('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz') do os.execute("sleep 10") end if nil ~= adt then os.execute('rm -fr ' .. adt .. ' 2>/dev/null') end I('Total run time was ' .. (os.time() - now) .. ' seconds.') -- cgit v1.1