On Tue, 13 Apr 2021 12:43:16 -0500 Christopher Wensink wrote:> Does it behave any differently when adding a & at the end of the command > when running it manually, or running in a screen session?Nope. I get the same stall both ways. Running it in a screen session looks exactly like what I posted earlier, and the & at the end of the command looks like this: [me at mutt temp]$ rsync -avv ../temp/ jeff:temp & [1] 15694 opening connection using: ssh jeff rsync --server -vvlogDtpre.iLsfxC . temp (7 args) [me at mutt temp]$ sending incremental file list delta-transmission enabled bookmarks.html is uptodate abc total: matches=38 hash_hits=38 false_alarms=0 data=0 ^C The difference here is that I don't see the "rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(644) [sender=3.1.3]" after the ctrl-c when I use the &. That line shows up only without the &. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
Christopher Wensink
2021-Apr-13 18:07 UTC
[CentOS] rsync over ssh stalls after completing the job
Try using --whole-file / -W On 4/13/2021 12:52 PM, Frank Cox wrote:> On Tue, 13 Apr 2021 12:43:16 -0500 > Christopher Wensink wrote: > >> Does it behave any differently when adding a & at the end of the command >> when running it manually, or running in a screen session? > Nope. I get the same stall both ways. Running it in a screen session looks exactly like what I posted earlier, and the & at the end of the command looks like this: > > [me at mutt temp]$ rsync -avv ../temp/ jeff:temp & > [1] 15694 > opening connection using: ssh jeff rsync --server -vvlogDtpre.iLsfxC . temp (7 args) > [me at mutt temp]$ sending incremental file list > delta-transmission enabled > bookmarks.html is uptodate > abc > total: matches=38 hash_hits=38 false_alarms=0 data=0 > ^C > > The difference here is that I don't see the "rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(644) [sender=3.1.3]" after the ctrl-c when I use the &. That line shows up only without the &. > > >-- Christopher Wensink IS Administrator Five Star Plastics, Inc 1339 Continental Drive Eau Claire, WI 54701 Office: 715-831-1682 Mobile: 715-563-3112 Fax: 715-831-6075 cwensink at five-star-plastics.com www.five-star-plastics.com