Skip to content

Commit

Permalink
changed backup data main path to /srv/polynimbus
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszklim committed Jan 12, 2020
1 parent 885d8f0 commit 4007f1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ mkdir -p -m 0700 \
/var/cache/polynimbus/linode/s3cmd \
/var/cache/polynimbus/azure/storage-accounts \
/var/log/polynimbus \
/srv/mounts/s3 \
/srv/mounts/azure \
/srv/mounts/linode \
/srv/polynimbus/s3 \
/srv/polynimbus/azure \
/srv/polynimbus/linode \
/srv/cifs/azure
chmod 0710 /var/cache/polynimbus
touch /var/cache/polynimbus/inventory/storage.list /var/cache/polynimbus/aws/s3-backup.blacklist
Expand Down
2 changes: 1 addition & 1 deletion internal/azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for entry in $entries; do

echo "### syncing share $share"
mount -t cifs $remote $path -o vers=3.0,credentials=$file,serverino
rsync -av --delete $path /srv/mounts/azure
rsync -av --delete $path /srv/polynimbus/azure
umount $path
done
done
2 changes: 1 addition & 1 deletion internal/linode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for entry in $buckets; do
continue
fi

path="/srv/mounts/linode/$account-$bucket"
path="/srv/polynimbus/linode/$account-$bucket"
if [ ! -d $path ]; then
mkdir -p -m 0700 $path
fi
Expand Down
2 changes: 1 addition & 1 deletion internal/s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ for entry in $buckets; do
continue
fi

path="/srv/mounts/s3/$account-$bucket"
path="/srv/polynimbus/s3/$account-$bucket"
if [ ! -d $path ]; then
mkdir -p -m 0700 $path
fi
Expand Down

0 comments on commit 4007f1e

Please sign in to comment.