wip
This commit is contained in:
parent
1ce95b02ff
commit
0d53b03494
3 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ '$1' == 'perform' ]]
|
if [[ "$1" == 'perform' ]]
|
||||||
then
|
then
|
||||||
echo 'NON-DRY RUN'
|
echo 'NON-DRY RUN'
|
||||||
DRY=''
|
DRY=''
|
||||||
|
@ -22,6 +22,6 @@ gsutil ${'\\'}
|
||||||
-e ${'\\'}
|
-e ${'\\'}
|
||||||
-x '${'|'.join(conf['exclude'])}' ${'\\'}
|
-x '${'|'.join(conf['exclude'])}' ${'\\'}
|
||||||
'${dir}' ${'\\'}
|
'${dir}' ${'\\'}
|
||||||
'gs://${bucket}/${node.name}${dir}'
|
'gs://${bucket}/${node.name}${dir}' ${'\\'}
|
||||||
|
2>&1 | tee | logger -t gsutil
|
||||||
% endfor
|
% endfor
|
||||||
|
|
|
@ -7,7 +7,7 @@ files['/opt/archive'] = {
|
||||||
'dirs': node.metadata.get('archive'),
|
'dirs': node.metadata.get('archive'),
|
||||||
'bucket': node.metadata.get('gcloud/bucket'),
|
'bucket': node.metadata.get('gcloud/bucket'),
|
||||||
'processes': 4,
|
'processes': 4,
|
||||||
'threads': 16,
|
'threads': 4,
|
||||||
},
|
},
|
||||||
'needs': [
|
'needs': [
|
||||||
'bundle:gcloud',
|
'bundle:gcloud',
|
||||||
|
|
|
@ -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 -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 config
|
||||||
gsutil versioning set on gs://sublimity-backup
|
gsutil versioning set on gs://sublimity-backup
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
gcsfuse --key-file /root/.config/gcloud/service_account.json sublimity-backup gcsfuse
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue