tar
is usually used for achiving applications, but what we are going to do in this case is tar
it then pipe it over an ssh
connection. tar
handles large file trees quite well and preserves all file permissions,
etc, including those UNIX systems which use ACLs, and works quite well
with symlinks.
the syntax is slightly different as we are piping it to ssh
:
tar -cf - /some/file | ssh host.name tar -xf - -C /destination
-or with compression-
tar -czf - /some/file | ssh host.name tar -xzf - -C /destination
don't unzip
tar zcvf - /wwwdata | ssh root@dumpserver.nixcraft.in "cat > /backup/wwwdata.tar.gz"
or
tar zcvf - /wwwdata | ssh root@192.168.1.201 "cat > /backup/wwwdata.tar.gz"
分享到:
相关推荐
Publish Over SSH插件使用 在使用Publish Over SSH之前,需要制作SSH私钥。机器间做免密登录配置。...ssh-copy-id 192.168.BB.BBB 验证方式是:在A机器上执行ssh 192.168.BB.BBB,然后执行ifconfig
问题:ssh-copy-id 命令无法使用,在linux服务器的ssh服务中没有有这个命令,可以在/usr/bin/的这文件夹中查看没有这个ssh-copy-id 命令。 问题分析:是由于ssh服务的问题,可以直接将ssh-copy-id 命令拷贝/usr/...
ssh-copy-id for windows,支持windows下的ssh-copy-id命令,加入exe所在路径到PATH环境变量即可
SSH Copy 17.03.1 好用的mac pro 苹果电脑 ssh 客户端 gui
1、包含jenkins 远程发布到tomcat 容器 2、解决了tomcat发布后需手动重启的问题。 具体通过Publish Over SSH 插件,实现远程文件copy、远程脚本执行、远程tomcat重启,实现真正的全自动化部署
ssh-copy-id for Windows版
複製pc中的檔案到手機端,要複製甚麼檔案需要修改程式碼
多线程copy file实例,加时间控制
免密登录必备ssh-copy-id脚本
/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': 没有那个文件或目录 (to install the contents of '/root/.pub' anyway, look at the -f option) 解决方法 [root@hadoop1 sbin]# ssh-keygen ...
Linux文件I/O编程实验代码copy_file,详细步骤看我的博客: http://blog.csdn.net/mybelief321/article/details/8989755
ssh-copy-id-for-OSX, 快速macosx端口有用的unix实用程序ssh副本 id 用于OSX的 ssh-copy-id实用的unix实用工具 ssh-copy-id的快速端口注意:现在,macOS Sierra在 /usr/bin 中包括一个板载的ssh-copy-id安装git ...
资源来自pypi官网。 资源全名:acopy-0.7.0.tar.gz
-U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout ...
ssh-copy-id命令可以把本地主机的公钥复制到远程主机的authorized_keys文件上,ssh-copy-id命令也会给远程主机的用户主目录(home)和~/.ssh, 和~/.ssh/authorized_keys设置合适的权限。 语法格式:ssh-copy-id ...
python库。 资源全名:copy_env-0.1.1.tar.gz
SYD,COPY_FILE,C#文件拷贝,工程 SYD,COPY_FILE,C#文件拷贝,工程 SYD,COPY_FILE,C#文件拷贝,工程 SYD,COPY_FILE,C#文件拷贝,工程
NULL 博文链接:https://myeyeofjava.iteye.com/blog/1898291
资源来自pypi官网。 资源全名:ecopy-0.1.2.2.tar.gz
适用于centos 7 redhat 7 制作openssh 9.6 rpm二进制包的源码包 基于openssl 1.1.1w 内含ssh-copy-id命令 2024年1月5日制作