Solved

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

Posted on 2008-09-29
7
1,075 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
ID: 22599779
nohup scp file host:/path &

0
 
LVL 1

Author Comment

by:pavan27
ID: 22599811
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
ID: 22599836
Are you able/permitted  to set up ssh keys?  That would be the easiest option.
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 6

Assisted Solution

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

Author Comment

by:pavan27
ID: 22601692
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
ID: 22602382
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
ID: 22606662
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

786 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