运行在FreeBSD-12.0p12目的地FreeBSD-12.1p1上的源iocage厚监狱
两台主机都在使用zfs。
建议采用什么方法将现有的监狱从源转移到目的地?它是否简单到:
rsync -aqz -e "ssh -o LogLevel=error" /zroot/iocage/jails/testjail \
destination:/zroot/iocage/jails假设iocage安装在两个主机上,zfs挂载点如上文所示,源监狱被关闭,并且在目标主机上不存在testjail。
发布于 2020-01-24 19:34:44
iocage具有很好的出口/进口功能。
$ man iocage
...
export Exports the specified jail. An archive file is created in
/iocage/images with an SHA256 checksum. The jail must be
stopped before exporting.
Example:
# iocage export examplejail_2然后将文件传输到新主机,在那里导入它,然后就可以了!
https://serverfault.com/questions/999383
复制相似问题