Skip to content

Commit e92b2c8

Browse files
committed
Fix -n option inverse
1 parent e7e87b3 commit e92b2c8

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
99
fi
1010
exit $?

0 commit comments

Comments
 (0)