#!/bin/sh # DO NOT EDIT - This file is being maintained by Chef export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 T=$(mktemp -d -t -p /var/tmp lists.XXXXXXXXXX) D=$(date +%Y-%m-%d) B="lists-$D.tar.zst" mkdir "$T/lists-$D" ln -s /var/lib/mailman "$T/lists-$D/mailman" nice tar --create --dereference \ --warning=no-file-changed \ --warning=no-file-removed \ --exclude='*/archives/*.txt.gz' \ --directory="$T" \ "lists-$D" | nice zstd --quiet --rsyncable -o "$T/$B" nice rsync --preallocate --fuzzy "$T/$B" backup.openstreetmap.org::backup rm -rf "$T"