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 --sort=name --dereference --directory="$T" --warning=no-file-changed --exclude="community-$D/shared-web-only/log/**/*.gz" "community-$D" | nice zstd --quiet --adapt --rsyncable -o "$T/$B"
 
  19 nice rsync --preallocate --fuzzy "$T/$B" backup.openstreetmap.org::backup