]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/community/templates/default/backup.cron.erb
community: Enable new IPv6 template
[chef.git] / cookbooks / community / templates / default / backup.cron.erb
index 6945c3bde9f514a37ee1a01993471a5721bcba10..4cb919a769a1f35a96afa9d4bec4834212a24286 100644 (file)
@@ -6,15 +6,15 @@ T=$(mktemp -d -t -p /var/tmp community.XXXXXXXXXX)
 D=$(date +%Y-%m-%d)
 B=community-$D.tar.gz
 
-mkdir $T/commmunity-$D
-ln -s /srv/community.openstreetmap.org/docker/containers $T/commmunity-$D/containers
-ln -s /srv/community.openstreetmap.org/shared/web-only $T/commmunity-$D/shared-web-only
-ln -s /srv/community.openstreetmap.org/shared/data/redis_data $T/commmunity-$D/shared-data-redis_data
-ln -s /srv/community.openstreetmap.org/shared/data/postgres_backup $T/commmunity-$D/shared-data-postgres_backup
+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
 
 export RSYNC_RSH="ssh -ax"
 
-nice tar --create --numeric-owner --dereference --directory=$T community-$D | nice gzip --rsyncable -9 > $T/$B
+nice tar --create --numeric-owner --dereference --directory=$T --warning=no-file-changed community-$D | nice gzip --rsyncable -9 > $T/$B
 nice rsync --preallocate --fuzzy $T/$B backup::backup
 
 rm -rf $T