简体   繁体   English

我正在尝试将整个目录从一台Linux计算机复制到另一台Linux计算机,包括权限

[英]I am trying to copy entire directories from one Linux machine to another, including permissions

I am trying to copy entire directories from one Linux machine to another, including permissions, and including the called directory. 我正在尝试将整个目录从一台Linux机器复制到另一台Linux机器,包括权限和被叫目录。 For example, from the parent directory of the destination, I tried rsync -rul root@mail3.domain.com/usr/sites/4my.com but that does not work. 例如,从目标的父目录中,我尝试了rsync -rul root@mail3.domain.com/usr/sites/4my.com,但这不起作用。 On the calling machine the destination is /home/sites What should that command be? 在调用方计算机上,目标是/ home / sites该命令应该是什么? Thanks! 谢谢!

尝试rsync -a username@remote_host:/home/username/dir1 place_to_sync_on_local_machine

尝试

sudo cp -rp /home/source /tmp/dest

暂无
暂无

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

相关问题 Linux:从多个目录中复制一个文件 - Linux: copy one file from several directories LINUX CP:我需要将所有文件从一个目录复制到另一个目录而不复制任何子目录 - LINUX CP: I need to copy all files from one directory to another without copying any sub-directories 可以将 perl 模块从一台 Linux 机器复制到另一台机器吗? - Can one just copy perl modules from one Linux machine to another? 从一台linux机器到另一台linux机器的远程文件传输 - Remote File Transfer from one linux machine to another linux machine 将ssh密钥(用于GIT)从一台Linux计算机复制到另一台计算机的最简单方法 - Easiest way to copy ssh key (Used for GIT) from one linux machine to another 如何将整个文件夹从 Amazon EC2 Linux 实例复制到本地 Linux 机器? - How to copy entire folder from Amazon EC2 Linux instance to local Linux machine? 尝试使用PowerShell从本地计算机复制文本文件内容并将其添加到Linux服务器中的另一个文件中 - Trying to use PowerShell to copy text file content from my local machine and have it added to another file in a Linux server 循环从几个目录Linux复制文件 - Loop to copy a file from several directories Linux 如何在Linux中将git存储库从一台计算机克隆到另一台计算机? - How to clone git repository from one machine to another in linux? 使用Jenkins将文件从一台linux机器复制到另一台linux机器 - Copying a file from one linux machine to another using Jenkins
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM