dot

packages and services management
Log | Files | Refs | README

commit 3bc4267929ee978a8120de57ce1e1c0b446a4c77
parent 51fad8fca956eafffee1d27871925879fa0aff1c
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  8 Jan 2018 18:33:24 +0100

also compress the data

Diffstat:
Mbin/back | 4++--
Mbin/io-mail | 2+-
Aenchive/enchive.pub | 2++
Aenchive/enchive.sec | 2++
4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/bin/back b/bin/back @@ -12,7 +12,7 @@ case $1 in find . -type f | sort | while read -r path do [ "$log" -nt "$path" ] && grep -F "$path" "$log" || $sum "$path" done | tee "$BACK/new" | while read -r hash path - do [ -f "$BACK/obj/$hash" ] || cp "$path" "$BACK/obj/$hash" + do [ -f "$BACK/obj/$hash" ] || xz -ck "$path" > "$BACK/obj/$hash.xz" done rev=$($sum "$BACK/new" | sed 's/ .*//') @@ -28,7 +28,7 @@ case $1 in while read -r hash path do mkdir -p "$(dirname "$path")" - cp "$BACK/obj/$hash" "$path" + xz -dkc "$BACK/obj/$hash.xz" > "$path" done < "$BACK/rev/$2" ;; (log) diff --git a/bin/io-mail b/bin/io-mail @@ -2,7 +2,7 @@ export LC_COLLATE=C -mdirs "$HOME/var/mail" | sort | while IFS='' read -r dir +mdirs "$HOME/.cache/mail" | sort | while IFS='' read -r dir do printf '%s\t%s\n' "$(mlist -s "$dir" | wc -l)" "${dir#$PWD/}" done | iomenu -p mail | cut -f 2 | mlist | mthread | msort -r -d | mseq -S | mscan -f '%6n %u %D %20f %t%2i%120S' | iomenu -p mail | diff --git a/enchive/enchive.pub b/enchive/enchive.pub @@ -0,0 +1 @@ +/mnt/key/enchive.pub+ \ No newline at end of file diff --git a/enchive/enchive.sec b/enchive/enchive.sec @@ -0,0 +1 @@ +/mnt/key/enchive.sec+ \ No newline at end of file