1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Linux】フォルダを圧縮してリモートからローカルへファイル転送

Posted at

フォルダをフォルダを圧縮してリモートからローカルへファイル転送

1.リモートにあるフォルダをZipファイル化

command
zip -r 圧縮後のフォルダ名(例えばwordpress.zip) 圧縮前のフォルダ名(例えばwordpress)

2.リモートにsftp接続をする

command
> sftp ログイン名@ホスト名(例えばroot@192.168.0.0)
> パスワード入力
sftp> get -r ディレクトリ名 

このようにすると、ローカルのホームディレクトリにフォルダが転送されているかと思います!

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?