3 # DO NOT EDIT - This file is being maintained by Chef
 
   7 export ZSTD_NBTHREADS=0
 
   9 T=$(mktemp -d -t -p /var/tmp community.XXXXXXXXXX)
 
  11 B="community-$D.tar.zst"
 
  13 mkdir "$T/community-$D"
 
  14 ln -s /srv/community.openstreetmap.org/docker/containers "$T/community-$D/containers"
 
  15 ln -s /srv/community.openstreetmap.org/shared/web-only "$T/community-$D/shared-web-only"
 
  16 ln -s /srv/community.openstreetmap.org/shared/data/redis_data "$T/community-$D/shared-data-redis_data"
 
  17 ln -s /srv/community.openstreetmap.org/shared/data/postgres_backup "$T/community-$D/shared-data-postgres_backup"
 
  20 nice tar --create --numeric-owner --dereference --directory="$T" \
 
  22   --warning=no-file-changed \
 
  23   --warning=no-file-removed \
 
  24   --ignore-failed-read \
 
  25   --exclude="community-$D/shared-web-only/log/**/*.gz" \
 
  26   "community-$D" | nice zstd --quiet --long --rsyncable -o "$T/$B"
 
  27 nice rsync --preallocate --fuzzy "$T/$B" backup.openstreetmap.org::backup