2

复制步骤

在 Windows 8 上。

在 shell 中(SSH 连接处于活动状态):

rhc snapshot save [appname]

错误

No system SSH available. Please use the --ssh option to specify the path to your SSH executable, or install SSH.

建议的解决方案

这篇文章

Usage: rhc snapshot-save <application> [--filepath FILE] [--ssh path_to_ssh_executable]
Pass '--help' to see the full list of options

问题

PC上按键的路径是:

C:\Users\[name]\.ssh

如何在 rhc snaphot 命令中定义它?

4

1 回答 1

4

Solution

rhc snapshot save [appname] --filepath FILE --ssh "C:\Users\[name]\.ssh"

This will show the message:

Pulling down a snapshot of application '[appname]' to FILE ...
... then after a while
Pulling down a snapshot of application '[appname]' to FILE ... DONE

Update

That saved the backup in a file called "FILE" without an extension, so I'm guessing in the future I should define the filename as something like "my_app_backup.tar.gz" ie:

rhc snapshot save [appname] --filepath "my_app_backup.tar.gz" --ssh "C:\Users\[name]\.ssh"

It will save in the repo directory, so make sure you move it out of this directory before you git add, commit, push etc, otherwise you will upload your backup too.

于 2014-07-06T14:23:07.697 回答