如何更改 ~/.gsutil 目录的位置?
How to change the location of ~/.gsutil directory?
linux 上 gsutil
目录的默认位置是 $HOME
。有办法改变吗?
我知道 $BOTO_CONFIG
和 $BOTO_PATH
有不同的用途。
这可以通过 [GSUtil]
部分下的 state_dir
boto 配置属性进行配置。您可以在 boto 文件中设置此值,也可以使用 -o
选项 as one of gsutil's Windows test scripts does 内联提供它,例如:
gsutil -o "GSUtil:state_dir=/tmp/mydir" cp /tmp/file1 gs://mybucket/
linux 上 gsutil
目录的默认位置是 $HOME
。有办法改变吗?
我知道 $BOTO_CONFIG
和 $BOTO_PATH
有不同的用途。
这可以通过 [GSUtil]
部分下的 state_dir
boto 配置属性进行配置。您可以在 boto 文件中设置此值,也可以使用 -o
选项 as one of gsutil's Windows test scripts does 内联提供它,例如:
gsutil -o "GSUtil:state_dir=/tmp/mydir" cp /tmp/file1 gs://mybucket/