简体   繁体   English

如何编写允许我通过 Powershell 从本地计算机复制到节点的命令

[英]How do I write a command that allows me to copy from local machine to a node via Powershell

This is the command I used to copy some files from a source to target which was basically from a node to my local computer via powershell that I need to run it but I am wondering now how do I copy from my local computer to another node I want to target?这是我用来将一些文件从源复制到目标的命令,基本上是通过 powershell 从一个节点复制到我的本地计算机,我需要运行它,但我现在想知道如何从我的本地计算机复制到另一个节点我想要瞄准? So basically i am created 2 nodes and the first was from that source to my local computer where I stored the files so I want to create it back up to a 2nd node via my local computer.所以基本上我创建了 2 个节点,第一个是从那个源到我存储文件的本地计算机,所以我想通过我的本地计算机将它创建备份到第二个节点。 So i just need the right command to go from my local cpu to a new node.所以我只需要从本地 cpu 到新节点的 go 的正确命令。 Any help please?有什么帮助吗?

scp -i c:\Users\DarraghMartin\Horizon\goerli_key.pem -o 'StrictHostkeyChecking=no' -r goerliuser@10.41.5.102:/data/keystore/* c:\Users\DarraghMartin\Data

The command syndax is just scp [options] source target .命令 syndax 只是scp [options] source target If I assume node1 and node2 are identical, then the whole command to copy the local /Data folder recursively to node2 could look like:如果我假设 node1 和 node2 相同,那么将本地/Data文件夹递归复制到 node2 的整个命令可能如下所示:

scp -i c:\Users\DarraghMartin\Horizon\goerli_key.pem -o 'StrictHostkeyChecking=no' -r c:\Users\DarraghMartin\Data goerliuser@Node2IP:/data/keystore/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 AWS 中编写一个 Lamdda function 以允许我连接到运行 MySQL 的 EC2 实例 - How do I write a Lamdda function in AWS that allows me to connect to an EC2 instance that is running MySQL 如何在本地计算机上缓存 Firestore 数据集? - How do I cache a Firestore dataset on the local machine? 如何将文件从本地磁盘复制到 AKS VMSS(所有 Azure 虚拟机规模集) - How to copy a file from local disk to AKS VMSS (All Azure Virtual Machine Scale Sets) 将最新上传的文件从 S3 存储桶复制到本地机器 - Copy the latest uploaded file from S3 bucket to local machine 如何为我的 iOS 应用程序创建仅允许授权用户(由我确定)并且不包含“注册帐户”功能的登录功能 - How do I create a login feature for my iOS app that only allows authorized users (determined by me) and does not include a "register account" feature 如何从本地机器访问 eks 集群 - How to access eks cluster from local machine 我想先连接到 aws 并通过 Api 从 Nodejs 中输入 python 命令。不知道该怎么做? - I want to first connect to aws and hit a python command from Nodejs via Api. Not sure how to do? 如何使用无服务器 API 结构 (node.js) 在本地计算机上运行 dynamo DB? - How can I run dynamo DB on my local machine with serverless API structure(node js)? 如何通过node.js从azure存储下载blob到本地存储? - How to download blobs from azure storage via node js to local storage? 试图将 Ansible 剧本从我的本地机器复制到远程主机。 但是获得错误的权限 - trying to copy an Ansible playbook from my local machine to remote host. But getting bad permissions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM