aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-27 23:41:48 +1000
committeronefang2019-12-27 23:41:48 +1000
commit1081327e513db284709759ed3b2893889a6390b2 (patch)
treea79268709cf3d86aa6e09da8a50837fdf7bf0bfb
parentUpdate script now tucks the archives into daily folders. (diff)
downloadapt-panopticon-1081327e513db284709759ed3b2893889a6390b2.zip
apt-panopticon-1081327e513db284709759ed3b2893889a6390b2.tar.gz
apt-panopticon-1081327e513db284709759ed3b2893889a6390b2.tar.bz2
apt-panopticon-1081327e513db284709759ed3b2893889a6390b2.tar.xz
Archive results to a daily folder.
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index fee4e28..72627a0 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -1064,7 +1064,7 @@ else
1064 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") 1064 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2")
1065 local adt = fadt:read('*l') 1065 local adt = fadt:read('*l')
1066 fadt:close() 1066 fadt:close()
1067 if (nil ~= adt) and APT.checkFile(adt) then os.execute('ionice -c3 nice -n 19 tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end 1067 if (nil ~= adt) and APT.checkFile(adt) then os.execute('mkdir -p ' .. adt:sub(1, 18) .. '; ionice -c3 nice -n 19 tar -c --xz ' .. adt .. ' -f ' .. adt:sub(1, 18) .. '/' .. adt .. '.tar.xz &') end
1068 local dt = os.date('!%F-%H-%M') 1068 local dt = os.date('!%F-%H-%M')
1069 local fodt = io.popen('TZ="GMT" date -r results/stamp +%F-%H-%M 2>/dev/null', 'r') 1069 local fodt = io.popen('TZ="GMT" date -r results/stamp +%F-%H-%M 2>/dev/null', 'r')
1070 local odt = fodt:read('*l') 1070 local odt = fodt:read('*l')