Remote copy via SCP doesn't work in background

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
The situation:
I'm switching file servers at home. I want to copy tons of data from one Synology Disk Station to another.
My Approach:
#Via SSH on the new server:
nohup scp -r $old_server:. .
I entered the credentials and closed my terminal emulator.
The problem:
I logged back in right again to see if it works. It began to copy files so I was satisfied.ps aux | grep scp showed the instance as well. Hence, I logged off and waited.
Two days later, I logged back in to have a look. And it seems like nothing has changed since the last time I logged in. ps aux still features the instance though.
Am I missing something? Why are the files not being copied in my absence?
Thank you in advance!
scp nohup nas synology
add a comment |Â
up vote
1
down vote
favorite
The situation:
I'm switching file servers at home. I want to copy tons of data from one Synology Disk Station to another.
My Approach:
#Via SSH on the new server:
nohup scp -r $old_server:. .
I entered the credentials and closed my terminal emulator.
The problem:
I logged back in right again to see if it works. It began to copy files so I was satisfied.ps aux | grep scp showed the instance as well. Hence, I logged off and waited.
Two days later, I logged back in to have a look. And it seems like nothing has changed since the last time I logged in. ps aux still features the instance though.
Am I missing something? Why are the files not being copied in my absence?
Thank you in advance!
scp nohup nas synology
1
Rather than a disowned ornohupedscp, why not run (in ascreenortmuxsession) something likersync -essh -za user@host:/path/to/files /local/path/to/files?
â DopeGhoti
Feb 9 at 20:42
@DopeGhoti Thank you for the comment, but what will that do for me? Doscreenortmuxhave the capability to run in the background without being attached to a terminal? I don't know these programs too well. And neithertmuxnorscreenare installed on the box. Issuing just the command returns:rsync error: rsync service is no running (code 43) at io.c(687) [Receiver=3.0.9].
â lukmi
Feb 11 at 9:55
That is precisely whatscreenandtmuxare for, actually. As for the error withrsync, I don't believe you should have gotten that error if you had told it to use the secure shell backend with-e ssh.
â DopeGhoti
Feb 12 at 16:27
@DopeGhoti I enabled rsync in the control panel of the Disk Station's web interface and now the command works. Yet I can't run it in background as I don't know any way to getscreenortmuxon the box - except maybe compiling from source. And why doesnohupnot work as expected?
â lukmi
Feb 13 at 18:28
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
The situation:
I'm switching file servers at home. I want to copy tons of data from one Synology Disk Station to another.
My Approach:
#Via SSH on the new server:
nohup scp -r $old_server:. .
I entered the credentials and closed my terminal emulator.
The problem:
I logged back in right again to see if it works. It began to copy files so I was satisfied.ps aux | grep scp showed the instance as well. Hence, I logged off and waited.
Two days later, I logged back in to have a look. And it seems like nothing has changed since the last time I logged in. ps aux still features the instance though.
Am I missing something? Why are the files not being copied in my absence?
Thank you in advance!
scp nohup nas synology
The situation:
I'm switching file servers at home. I want to copy tons of data from one Synology Disk Station to another.
My Approach:
#Via SSH on the new server:
nohup scp -r $old_server:. .
I entered the credentials and closed my terminal emulator.
The problem:
I logged back in right again to see if it works. It began to copy files so I was satisfied.ps aux | grep scp showed the instance as well. Hence, I logged off and waited.
Two days later, I logged back in to have a look. And it seems like nothing has changed since the last time I logged in. ps aux still features the instance though.
Am I missing something? Why are the files not being copied in my absence?
Thank you in advance!
scp nohup nas synology
asked Feb 9 at 20:13
lukmi
183
183
1
Rather than a disowned ornohupedscp, why not run (in ascreenortmuxsession) something likersync -essh -za user@host:/path/to/files /local/path/to/files?
â DopeGhoti
Feb 9 at 20:42
@DopeGhoti Thank you for the comment, but what will that do for me? Doscreenortmuxhave the capability to run in the background without being attached to a terminal? I don't know these programs too well. And neithertmuxnorscreenare installed on the box. Issuing just the command returns:rsync error: rsync service is no running (code 43) at io.c(687) [Receiver=3.0.9].
â lukmi
Feb 11 at 9:55
That is precisely whatscreenandtmuxare for, actually. As for the error withrsync, I don't believe you should have gotten that error if you had told it to use the secure shell backend with-e ssh.
â DopeGhoti
Feb 12 at 16:27
@DopeGhoti I enabled rsync in the control panel of the Disk Station's web interface and now the command works. Yet I can't run it in background as I don't know any way to getscreenortmuxon the box - except maybe compiling from source. And why doesnohupnot work as expected?
â lukmi
Feb 13 at 18:28
add a comment |Â
1
Rather than a disowned ornohupedscp, why not run (in ascreenortmuxsession) something likersync -essh -za user@host:/path/to/files /local/path/to/files?
â DopeGhoti
Feb 9 at 20:42
@DopeGhoti Thank you for the comment, but what will that do for me? Doscreenortmuxhave the capability to run in the background without being attached to a terminal? I don't know these programs too well. And neithertmuxnorscreenare installed on the box. Issuing just the command returns:rsync error: rsync service is no running (code 43) at io.c(687) [Receiver=3.0.9].
â lukmi
Feb 11 at 9:55
That is precisely whatscreenandtmuxare for, actually. As for the error withrsync, I don't believe you should have gotten that error if you had told it to use the secure shell backend with-e ssh.
â DopeGhoti
Feb 12 at 16:27
@DopeGhoti I enabled rsync in the control panel of the Disk Station's web interface and now the command works. Yet I can't run it in background as I don't know any way to getscreenortmuxon the box - except maybe compiling from source. And why doesnohupnot work as expected?
â lukmi
Feb 13 at 18:28
1
1
Rather than a disowned or
nohuped scp, why not run (in a screen or tmux session) something like rsync -essh -za user@host:/path/to/files /local/path/to/files?â DopeGhoti
Feb 9 at 20:42
Rather than a disowned or
nohuped scp, why not run (in a screen or tmux session) something like rsync -essh -za user@host:/path/to/files /local/path/to/files?â DopeGhoti
Feb 9 at 20:42
@DopeGhoti Thank you for the comment, but what will that do for me? Do
screen or tmux have the capability to run in the background without being attached to a terminal? I don't know these programs too well. And neither tmux nor screen are installed on the box. Issuing just the command returns: rsync error: rsync service is no running (code 43) at io.c(687) [Receiver=3.0.9].â lukmi
Feb 11 at 9:55
@DopeGhoti Thank you for the comment, but what will that do for me? Do
screen or tmux have the capability to run in the background without being attached to a terminal? I don't know these programs too well. And neither tmux nor screen are installed on the box. Issuing just the command returns: rsync error: rsync service is no running (code 43) at io.c(687) [Receiver=3.0.9].â lukmi
Feb 11 at 9:55
That is precisely what
screen and tmux are for, actually. As for the error with rsync, I don't believe you should have gotten that error if you had told it to use the secure shell backend with -e ssh.â DopeGhoti
Feb 12 at 16:27
That is precisely what
screen and tmux are for, actually. As for the error with rsync, I don't believe you should have gotten that error if you had told it to use the secure shell backend with -e ssh.â DopeGhoti
Feb 12 at 16:27
@DopeGhoti I enabled rsync in the control panel of the Disk Station's web interface and now the command works. Yet I can't run it in background as I don't know any way to get
screen or tmux on the box - except maybe compiling from source. And why does nohup not work as expected?â lukmi
Feb 13 at 18:28
@DopeGhoti I enabled rsync in the control panel of the Disk Station's web interface and now the command works. Yet I can't run it in background as I don't know any way to get
screen or tmux on the box - except maybe compiling from source. And why does nohup not work as expected?â lukmi
Feb 13 at 18:28
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423115%2fremote-copy-via-scp-doesnt-work-in-background%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Rather than a disowned or
nohupedscp, why not run (in ascreenortmuxsession) something likersync -essh -za user@host:/path/to/files /local/path/to/files?â DopeGhoti
Feb 9 at 20:42
@DopeGhoti Thank you for the comment, but what will that do for me? Do
screenortmuxhave the capability to run in the background without being attached to a terminal? I don't know these programs too well. And neithertmuxnorscreenare installed on the box. Issuing just the command returns:rsync error: rsync service is no running (code 43) at io.c(687) [Receiver=3.0.9].â lukmi
Feb 11 at 9:55
That is precisely what
screenandtmuxare for, actually. As for the error withrsync, I don't believe you should have gotten that error if you had told it to use the secure shell backend with-e ssh.â DopeGhoti
Feb 12 at 16:27
@DopeGhoti I enabled rsync in the control panel of the Disk Station's web interface and now the command works. Yet I can't run it in background as I don't know any way to get
screenortmuxon the box - except maybe compiling from source. And why doesnohupnot work as expected?â lukmi
Feb 13 at 18:28