Solved

scp one big file(45gb) file from one host to another host

Posted on 2008-09-29
7
1,069 Views
Last Modified: 2013-12-27
Experts,

i had one question. i need to copy file (45gb) file from one host to another host. how do i do that. i want to run this scp in nohup mode. because i can get problem with timed out.

can any one give the script to run the scp in nohup mode
0
Comment
Question by:pavan27
7 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 300 total points
Comment Utility
nohup scp file host:/path &

0
 
LVL 1

Author Comment

by:pavan27
Comment Utility
Thanks for reply.

how do is give password. can you send me full syatax.

my host name as are host1 and host2
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 300 total points
Comment Utility
Are you able/permitted  to set up ssh keys?  That would be the easiest option.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 6

Assisted Solution

by:wwnosal
wwnosal earned 100 total points
Comment Utility
nohup scp -i key_file  file_to_copy user_name@host1:/path/to/your/file.ext &
0
 
LVL 1

Author Comment

by:pavan27
Comment Utility
what is key_file here. i did not understand key file here

how do i setup ssh keys?
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 300 total points
Comment Utility
On host1, type in

ssh-keygen -t dsa

Press enter for the all the prompts.

copy the $HOME/.ssh/id_dsa.pub to host2 and put it in

$HOME/.ssh/authorized_keys

make sure .ssh directory has perms of 700 and authorized_keys has perms of 600
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 100 total points
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sort command HPUX 11 53
Using Grep to Find a file 8 72
UNiX Script filesystem space usage 19 59
MarkLogic 1 47
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now