Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从一台服务器复制我的可用站点和启用站点的文件夹并将它们移动到我的新服务器,而无需再次将它们全部输入。有没有快速的方法来做到这一点?也许我可以将它们复制到我的桌面,然后再复制回新服务器?我不知道使这项工作的命令。
你能用rsync吗?
rsync
在服务器 1 上:
rsync -aP /etc/apache2/sites-available you@<ip_of_server2>:/etc/apache2/sites-available