LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2013, 11:56 AM   #1
akamel
Member
 
Registered: Dec 2012
Posts: 100

Rep: Reputation: 1
tar and scp


I want to copy 60 GB from server to another server.
So I will need use both commands. I need the best and the easiest command to do this with good explanation.

Much appreciated!
 
Old 07-10-2013, 12:15 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,944

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by akamel View Post
I want to copy 60 GB from server to another server.
So I will need use both commands. I need the best and the easiest command to do this with good explanation.

Much appreciated!
Ok..so read the man pages on both the tar and scp commands. That will give you your good explanation. Also, rsync can use SSH, and handle compression, so the man page there will also give you an explanation.

If you read the man page on SCP, pay particular attention to the "-C" option...which does compression BEFORE sending, and omits the need for using tar at all. A small bit of research can help you answer your own questions.

There are also THOUSANDS of easily-found hits in Google for "linux tar output into scp", with examples. Did you try to look? For example:
http://superuser.com/questions/51330...ist-of-scp-how
 
Old 07-10-2013, 12:43 PM   #3
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
Thanks for the help. I was just want to this backup ASAP, so didn't try to google it
Anyway thanks!
 
Old 07-10-2013, 12:57 PM   #4
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
I'm now using;
tar czfv - file | ssh root@dest tar xvzf - - C dest dir

it's taking much time!

---------- Post added 07-10-13 at 06:57 PM ----------

they are 60 GB
 
Old 07-10-2013, 01:54 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,944

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by akamel View Post
Thanks for the help. I was just want to this backup ASAP, so didn't try to google it
Anyway thanks!
So instead of trying to look anything up when you're in a hurry, you post it here, and expect others to do it for you, and post back? Not only does it take more time, but is a bit lazy.
Quote:
Originally Posted by akamel
I'm now using;
tar czfv - file | ssh root@dest tar xvzf - - C dest dir
it's taking much time! they are 60 GB
...and what's surprising about that?? 60GB's transferring over the network WILL take time.
 
Old 07-10-2013, 02:10 PM   #6
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
no problem thx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
Doing backup of servers scripts using tar/gzip/scp/rm Swakoo Linux - General 4 12-05-2006 03:09 AM
scp slow for tar files? kloppster Linux - Software 4 08-21-2004 09:14 PM
cron jobs - tar scp in one line? bkeating Linux - Software 1 11-04-2003 04:49 PM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration