🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.net.misc
Article #24

Re: Restartable scp over SSH 再開可能なコピーコマンド

#24
From: NAKAJI Hiroyuki
Date: Thu, 20 Sep 2007 04:37
22 lines
2222 bytes
中治@鳥取です。

>>>>> In <YAS.07Sep20122310@kirk.is.tsukuba.ac.jp> 
>>>>>	yas@is.tsukuba.ac.jp (Yasushi Shinjo) wrote:

> scp で巨大なファイルをコピーしようとしています。2GB くらい。
> でも、途中で止まったりすることがあるので、再開可能なscp があ
> るといいなあと思いました。そういうプログラムはどこかにありま
> せんか。

rsync で --partial を使うというのはどうでしょうか。

--partial
       By default, rsync will delete any partially transferred file  if
       the  transfer  is  interrupted. In some circumstances it is more
       desirable to keep partially transferred files. Using the  --par-
       tial  option  tells  rsync to keep the partial file which should
       make a subsequent transfer of the rest of the file much  faster.

失敗または中断した次の実行時に、続きをやってくれるらしいです。
-- 
NAKAJI Hiroyuki (中治 弘行)
Technical Details
Message-ID: <871wcurlyo.fsf@roddy.4407.kankyo-u.ac.jp>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeed2.kddnet.ad.jp!newsfeed2.kddnet.ad.jp!jpix!mmcatv.co.jp!news.mcu.or.jp!norn-news!news.heimat.gr.jp!not-for-mail
References: <YAS.07Sep20122310@kirk.is.tsukuba.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10b89a,368d3ef74f9f2631
X-Google-Thread: fdef0,368d3ef74f9f2631
X-Google-Thread: 10fa20,368d3ef74f9f2631
X-Google-Attributes: gid10b89a,gidfdef0,gid10fa20,public,usenet
X-Google-Language: Japanese,JIS
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeed2.kddnet.ad.jp!newsfeed2.kddnet.ad.jp!jpix!mmcatv.co.jp!news.mcu.or.jp!norn-news!news.heimat.gr.jp!not-for-mail
From: NAKAJI Hiroyuki <nakaji@kankyo-u.ac.jp>
Newsgroups: fj.net.misc,fj.unix,fj.comp.applications.misc
Subject: Re: Restartable scp over SSH 再開可能なコピーコマンド
Date: Thu, 20 Sep 2007 13:37:35 +0900
Organization: Dept. of Archi. and Civil Eng., Toyohashi Univ. of Tech.
Lines: 22
Message-ID: <871wcurlyo.fsf@roddy.4407.kankyo-u.ac.jp>
References: <YAS.07Sep20122310@kirk.is.tsukuba.ac.jp>
NNTP-Posting-Host: 2001:3e0:a84:2::2
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
X-Trace: www.heimat.gr.jp 1190263060 42079 2001:3e0:a84:2::2 (20 Sep 2007 04:37:40 GMT)
X-Complaints-To: usenet@www.heimat.gr.jp
NNTP-Posting-Date: Thu, 20 Sep 2007 04:37:40 +0000 (UTC)
User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (berkeley-unix)
Cancel-Lock: sha1:GRGzIV173vuGFh2fw0Y4zOT5ExA=