LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10: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, 11:15 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 11:43 AM   #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, 11:57 AM   #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, 12:54 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 01:10 PM   #6
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
no problem thx
 
  


Reply



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 02:53 AM
Doing backup of servers scripts using tar/gzip/scp/rm Swakoo Linux - General 4 12-05-2006 02:09 AM
scp slow for tar files? kloppster Linux - Software 4 08-21-2004 08:14 PM
cron jobs - tar scp in one line? bkeating Linux - Software 1 11-04-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration