3 # DO NOT EDIT - This file is being maintained by Chef
6 export ZSTD_NBTHREADS=0
8 T=$(mktemp -d -t -p /var/tmp community.XXXXXXXXXX)
10 B="community-$D.tar.zst"
12 mkdir "$T/community-$D"
13 ln -s /srv/community.openstreetmap.org/docker/containers "$T/community-$D/containers"
14 ln -s /srv/community.openstreetmap.org/shared/web-only "$T/community-$D/shared-web-only"
15 ln -s /srv/community.openstreetmap.org/shared/data/redis_data "$T/community-$D/shared-data-redis_data"
16 ln -s /srv/community.openstreetmap.org/shared/data/postgres_backup "$T/community-$D/shared-data-postgres_backup"
18 nice tar --create --numeric-owner --dereference --directory="$T" --warning=no-file-changed "community-$D" | nice zstd --quiet --rsyncable -o "$T/$B"
19 nice rsync --preallocate --fuzzy "$T/$B" backup.openstreetmap.org::backup