Skip to content

Commit c084bec

Browse files
committed
Merge pull request #4 from tilfin/fix/sync-gsutil
Fix/sync gsutil
2 parents e7e87b3 + 978108e commit c084bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sync.gsutil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
BOTO_PATH=/backup/serverbackup/boto.cfg
3+
export BOTO_PATH=/backup/serverbackup/boto.cfg
44

55
if [ "$DRY_RUN" ]; then
6-
/backup/gsutil/gsutil rsync -r $1 gs://$2/$3
7-
else
86
/backup/gsutil/gsutil rsync -n -r $1 gs://$2/$3
7+
else
8+
/backup/gsutil/gsutil rsync -r $1 gs://$2/$3 2> /dev/null
99
fi
1010
exit $?

0 commit comments

Comments
 (0)