How to upload a file / folder from a remote (opens to the left) to the local system

How to download or create a backup or save a copy of a file from a remote openshift folder to my local system folder using the rhc client tool? or is there any other way besides the rhc client tool to backup it on my local system?

Also, is there a way to copy the entire folder from the remote (open) to the local one?

+6
source share
2 answers

Use winscp (if in windows) for ssh in your openshift application. Go to the folder. Drag the folder or files to the local computer.

Filezilla - using filezilla and sftp with openable fork

+4
source

First tar and gzip your folder on the server in the ssh session, the syntax is:

 rhc ssh <app_name> tar czf <name_of_new_file>.tar.gz <name_of_directory> 

Secondly, after you disconnected from the openshift server (with CTRL-D ), upload this file to the local system:

 rhc scp <app_name> download <local_destination> <absolute_path_to_remote_file> 

Then, on your local computer, you can extract the file and perform your actions.

+13
source

Source: https://habr.com/ru/post/980358/


All Articles