仅当文件不存在时才将每个文件从目录结构复制到特定目录。
从这个 Stack Overflow 问题中得到了第一部分:
find . -type f -exec cp {} /target-directory \;
Run Code Online (Sandbox Code Playgroud)
如何检查文件是否存在?如果没有,则复制文件,否则跳过。
无法启动实例,出现以下错误。
$ nova reboot <instance-name>
ERROR: Cannot 'reboot' instance e54b5d26-2918-4ab6-8210-94e827bf2a94 while it is in vm_state error (HTTP 409) (Request-ID: req-88efe1d4-37c3-409e-89a9-844f537e51eb)
Run Code Online (Sandbox Code Playgroud)
$nova show <instance-name>
| fault | {"message": "Instance e54b5d26-2918-4ab6-8210-94e827bf2a94 cannot be rescued: Driver Error: internal error: early end of file from monitor: possible problem: |
| | 2016-05-01T05:35:27.071764Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
Run Code Online (Sandbox Code Playgroud)
请告诉我如何解决这个问题。