This commit is contained in:
mwiegand 2021-06-19 20:35:49 +02:00
parent 1ce95b02ff
commit 0d53b03494
3 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
if [[ '$1' == 'perform' ]]
if [[ "$1" == 'perform' ]]
then
echo 'NON-DRY RUN'
DRY=''
@ -22,6 +22,6 @@ gsutil ${'\\'}
-e ${'\\'}
-x '${'|'.join(conf['exclude'])}' ${'\\'}
'${dir}' ${'\\'}
'gs://${bucket}/${node.name}${dir}'
'gs://${bucket}/${node.name}${dir}' ${'\\'}
2>&1 | tee | logger -t gsutil
% endfor

View file

@ -7,7 +7,7 @@ files['/opt/archive'] = {
'dirs': node.metadata.get('archive'),
'bucket': node.metadata.get('gcloud/bucket'),
'processes': 4,
'threads': 16,
'threads': 4,
},
'needs': [
'bundle:gcloud',

View file

@ -4,4 +4,8 @@ gcloud projects add-iam-policy-binding sublimity-182017 --member 'serviceAccount
gsutil -o "GSUtil:parallel_process_count=3" -o GSUtil:parallel_thread_count=4 -m rsync -r -d -e /var/vmail gs://sublimity-backup/mailserver
gsutil config
gsutil versioning set on gs://sublimity-backup
gcsfuse --key-file /root/.config/gcloud/service_account.json sublimity-backup gcsfuse
```