gpt4 book ai didi

google-compute-engine - 将文件从 GCE 导出到我的本地计算机

转载 作者:行者123 更新时间:2023-12-03 05:29:16 25 4
gpt4 key购买 nike

是否有用于gcutil Push的反向命令基本上我想做的是在本地计算机上拥有我的python文件的副本,所以我正在寻找一种将文件导入到我的计算机中的方法本地计算机从我的谷歌计算引擎实例导出它们,而不使用 GIT 或任何其他源代码控制工具

最佳答案

是的,有 gcutil pull。这是帮助文件:

Local:~ mark$ gcutil help pull

Command line tool for interacting with Google Compute Engine.

Please refer to http://developers.google.com/compute/docs/gcutil/tips for more
information about gcutil usage.


USAGE: gcutil [--global_flags] <command> [--command_flags] [args]


pull Pull one or more files from a VM instance.

Usage: gcutil [--global_flags] pull
[--command_flags] <instance-name> <file-1> ...
<file-n> <destination>

Flags for pull:

gcutil_lib.instance_cmds:
--ssh_arg: Additional arguments to pass to ssh;
repeat this option to specify a list of values
(default: '[]')
--ssh_key_push_wait_time: Number of seconds to wait for updates to
project-wide ssh keys to cascade to the instances within the project
(default: '120')
(an integer)
--ssh_port: TCP port to connect to
(default: '22')
(an integer)
--zone: [Required] The zone for this request.

gflags:
--flagfile: Insert flag definitions from the given file into the command line.
(default: '')
--undefok: comma-separated list of flag names that it is okay to specify on
the command line even if the program does not define a flag with that name.
IMPORTANT: flags in this list that have arguments MUST use the --flag=value
format.
(default: '')


Run 'gcutil --help' to get help for global flags.
Run 'gcutil help' to see the list of available commands.

关于google-compute-engine - 将文件从 GCE 导出到我的本地计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21884464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com