Operating System - HP-UX
1752701 Members
5386 Online
108789 Solutions
New Discussion юеВ

copying directories using scp2

 
SOLVED
Go to solution
Manoj1
Advisor

copying directories using scp2

Hi all,

I want to copy content of one directory to another server using scp2. There are many files and it may take usually 10 hours or so.

If i come home my terminal become inactive and gets disconnected.
Can i start scp2 command with nohup so that it can continue even if my terminal gets disconnected ?
What are other options available ?

Thanks,
Manoj
2 REPLIES 2
Johnson Punniyalingam
Honored Contributor
Solution

Re: copying directories using scp2

>>>> Can i start scp2 command with nohup so that it can continue even if my terminal gets disconnected ?

Yes, you can use "nohup"

>>> What are other options available ?

# tar cvf onedir.tar /
# ftp another_server
put onedir.tar
bye

another server
# tar xvf onedir.tar
Problems are common to all, but attitude makes the difference
kemo
Trusted Contributor

Re: copying directories using scp2

let crontab run it for you in a specified time.