#!/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 community.XXXXXXXXXX) D=$(date +%Y-%m-%d) B="community-$D.tar.zst" mkdir "$T/community-$D" ln -s /srv/community.openstreetmap.org/docker/containers "$T/community-$D/containers" ln -s /srv/community.openstreetmap.org/shared/web-only "$T/community-$D/shared-web-only" ln -s /srv/community.openstreetmap.org/shared/data/redis_data "$T/community-$D/shared-data-redis_data" ln -s /srv/community.openstreetmap.org/shared/data/postgres_backup "$T/community-$D/shared-data-postgres_backup" nice tar --create --numeric-owner --dereference --directory="$T" --warning=no-file-changed "community-$D" | nice zstd --quiet --rsyncable -o "$T/$B" nice rsync --preallocate --fuzzy "$T/$B" backup.openstreetmap.org::backup rm -rf "$T"