另外,我不知道这是否是您所要求的,但您可以将现有的安装转换为 ISO 映像,这样您就可以将其安装在其他地方,从而获得重复的版本。
希望有帮助
There is RSYNC which let's you synchornise files between installations. So you could just rsync your entire distro, or at least the directories that contain the programs and the configuration files.
Also, I don't know if this is what you are asking, but you could turn your existing install into an ISO image, this would allow you to install it elsewhere, thus having a duplicate.
If the drives and systems are identical, you might consider using dd to copy the source machine to the target.
The only changes that would need to be made on booting the new machine would be to change the hostname.
Once the machine has been duplicated, go with what the other answers have suggested, and look at rsync. You won't want to rsync everything, though: system log files etc should be left alone.
Also, depending on how often "changes" are made to either system (from bookmarks to downloaded ISOs), you may need to run rsync in daemon mode, and have it update nearly constantly.
Well it all depends on scale, and how often you want to use it, using systemimager is basicly rsync on steroids, it has some scripts which make creation of images easy and allows you have network settings etc. This can be easily used where you need to create a farm of webservers or a farm of mailserver with only a small difference between installations where you are able to boot one blank system over the network and have it completely installed. This has the advantage that it's almost completely automated, a script learn your partitioning layout and automatically applies it.
When you only need one copy of a system, keep it simple, boot from a livecd, create your partitioning, copy over network using rsync, install your bootloader and everything 'll be fine.
发布评论
评论(8)
如何镜像 apt-get 安装。
主系统
目标系统
完成。
对此帖子+1
How to mirror apt-get installs.
Primary System
Target System
done.
+1 to this post
本指南应该回答您的直接问题
但我会推荐 Rsync 并简单地克隆整个 /root。 只是第一次贵而已。
您还可以创建自己的包存储库,并让所有计算机从您的存储库运行每日更新。
This guide should answer your direct question
But I would recomend Rsync and simply clone entire /root. Its only expensive the first time.
You can also create your own package repository and have all your machines run their daily updates from your repository.
假设您想在多个相同的系统上安装 Ubuntu,您可以尝试使用 自动安装功能。
Supposing you want to install Ubuntu on multiple identical systems you could try with the Automatic Install feature.
您可以使用 rsync 来实现这一点,并且 ubuntuforms 上有一个关于它的有趣线程:
ubuntuform
You can use rsync for that and there is an interesting thread about it on ubuntuforms:
ubuntuforms
RSYNC 可以让您在安装之间同步文件。 因此,您可以只同步整个发行版,或者至少同步包含程序和配置文件的目录。
另外,我不知道这是否是您所要求的,但您可以将现有的安装转换为 ISO 映像,这样您就可以将其安装在其他地方,从而获得重复的版本。
希望有帮助
There is RSYNC which let's you synchornise files between installations. So you could just rsync your entire distro, or at least the directories that contain the programs and the configuration files.
Also, I don't know if this is what you are asking, but you could turn your existing install into an ISO image, this would allow you to install it elsewhere, thus having a duplicate.
Hope that helps
如果驱动器和系统相同,您可以考虑使用 dd 将源计算机复制到目标。
启动新机器时需要进行的唯一更改是更改主机名。
复制机器后,请按照其他答案的建议进行操作,然后查看 rsync。 不过,您不会希望同步所有内容:系统日志文件等应该保留。
另外,根据对任一系统进行“更改”的频率(从书签到下载的 ISO),您可能需要在守护程序模式下运行 rsync,并使其几乎不断更新。
If the drives and systems are identical, you might consider using dd to copy the source machine to the target.
The only changes that would need to be made on booting the new machine would be to change the hostname.
Once the machine has been duplicated, go with what the other answers have suggested, and look at rsync. You won't want to rsync everything, though: system log files etc should be left alone.
Also, depending on how often "changes" are made to either system (from bookmarks to downloaded ISOs), you may need to run rsync in daemon mode, and have it update nearly constantly.
SystemImager
FAI
我们的 systemimager 与 RHEL 和 CentOS 配合得很好。 没在 Debian 上尝试过。
不过,Luka 链接的技巧在 debian 上效果很好。
SystemImager
FAI
We have systemimager working great with RHEL and CentOS. Haven't tried it on Debian.
The trick linked by Luka works great with debian though.
好吧,这一切都取决于规模,以及您想要使用它的频率,使用 systemimager 基本上是类固醇上的 rsync,它有一些脚本可以使创建图像变得容易,并允许您进行网络设置等。这可以在您需要的地方轻松使用创建一个网络服务器场或一个邮件服务器场,安装之间只有很小的差异,您可以通过网络启动一个空白系统并完全安装它。 这样做的优点是它几乎完全自动化,脚本会学习您的分区布局并自动应用它。
当您只需要系统的一份副本时,请保持简单,从 livecd 启动,创建分区,使用 rsync 通过网络复制,安装引导加载程序,一切都会好起来的。
Well it all depends on scale, and how often you want to use it, using systemimager is basicly rsync on steroids, it has some scripts which make creation of images easy and allows you have network settings etc. This can be easily used where you need to create a farm of webservers or a farm of mailserver with only a small difference between installations where you are able to boot one blank system over the network and have it completely installed. This has the advantage that it's almost completely automated, a script learn your partitioning layout and automatically applies it.
When you only need one copy of a system, keep it simple, boot from a livecd, create your partitioning, copy over network using rsync, install your bootloader and everything 'll be fine.