DD 命令如何在后台运行?
資深大佬 : jsjcjsjc 6
就是这个条命令,尝试了 screen 和 nohup 貌似都不能在后台运行,ssh 一断就停了…
dd if=/dev/vda | gzip >/mnt/data/win2012.img.gz
测试了 screen 和 nohup 都不行..
screen -d -m dd if=/dev/vda | gzip >/mnt/data/win2012.img.gz nohup dd if=/dev/vda | gzip >/mnt/data/win2012.img.gz > /mnt/data/report.log 2>&1 &
尝试使用 screen 命令,但是因为是在 DO 的救援模式下面,会直接跳转到救援选择界面
1. Mount your Disk Image [Not Mounted] 2. Check Filesystem 3. Reset Droplet Root Password 4. Configure Keyboard 5. Attempt to 'chroot' into installed system 6. Interactive Shell [/bin/bash] Choose (1-6) and press Enter to continue.
先感谢了,因为中间多了一个|,想把压缩一起写进去.不知道怎么写了
大佬有話說 (15)