it天空的封装我大致会,封装玩怎么制作gz打包呢?
那博客已经说到用DD打包的,仔细看看。
也就是通过SSHFS将远程VPS指定目录虚拟成本地目录(磁盘),然后通过DD命令打包并压缩为文件到远程。如果你本地有两个磁盘,你可以省却了SSHFS这步:)
那编文章重点在于:
Once the Terminal has opened we will be inserting a few commands there. First one is “sudo -i” without the quotes to make ourself the root user.
Now create a new directory: “mkdir /mnt/temp”. Once that is done install SSHFS using “apt-get install sshfs”. Now, you will need a VPS or Server with at least 5GB disk space available. We will be uploading the template to that server while we are dumping the disk.
Now mount the external storage using the following command: “sudo sshfs root@YOURVPSIP:/home /mnt/temp”
Once that is done create a DD (dump) of the disk using the following command: “dd if=/dev/sda | gzip -1 | dd of=/mnt/temp/WindowsTemplate.gz”