LoginSignup
2
3

More than 5 years have passed since last update.

リモートファイルをローカル環境に落とす手順書

Last updated at Posted at 2017-11-22

目的

ログファイル、設定ファイル、DBスキーマなどを落としたい時に利用する

手順1 リモートサーバーで叩くコマンド

リモートサーバーのグローバルIPを取得
$ curl ifconfig.me

手順2 ローカルで叩くコマンド

後はscpコマンドでダウンロード。
落としたいファイルの相対パスはユーザーでログインした場合の~/から
$ scp -r username@remote_server_ip_addr:file_path output_dir/file_name

最後

便利!

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3