diff options
author | onefang | 2019-12-27 23:41:48 +1000 |
---|---|---|
committer | onefang | 2019-12-27 23:41:48 +1000 |
commit | 1081327e513db284709759ed3b2893889a6390b2 (patch) | |
tree | a79268709cf3d86aa6e09da8a50837fdf7bf0bfb | |
parent | Update script now tucks the archives into daily folders. (diff) | |
download | apt-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-x | apt-panopticon.lua | 2 |
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') |