How to download or backup or to save a copy of a file from openshift remote folder into my local-system folder using rhc client tool? or is there any other way other than rhc client tool to make a backup of it to my local system?
Also, Is there a way to copy an entire folder from remote(openshift) to local?
Use winscp (if on windows) to ssh into your openshift app. Navigate to your folder. Drag and drop folder or files to local machine.
Filezilla - using filezilla and sftp with openshift
First, tar
and gzip
your folder on the server within a ssh
session, the syntax is:
rhc ssh <app_name>
tar czf <name_of_new_file>.tar.gz <name_of_directory>
Second, after you have disconnected from the openshift server (with CTRL-D
), download this file to your local system:
rhc scp <app_name> download <local_destination> <absolute_path_to_remote_file>
Then on your local machine you can extract the file and perform your actions.