Remote copy via SCP doesn't work in background

The name of the pictureThe name of the pictureThe name of the pictureClash 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!







share|improve this question
















  • 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










  • @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










  • @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














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!







share|improve this question
















  • 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










  • @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










  • @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












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!







share|improve this question












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!









share|improve this question











share|improve this question




share|improve this question










asked Feb 9 at 20:13









lukmi

183




183







  • 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










  • @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










  • @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












  • 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










  • @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










  • @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







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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)