cancel
Showing results for 
Search instead for 
Did you mean: 

dir copy

 
navin
Super Advisor

dir copy

Hi i have system A and have to copy a dir worth 3000 mb to system B . A:/usr/mas to B:/usr/mas - what is the tar command that i can use for this purpose.I have created /usr/mas on host B. I have copy with permissions.
Thanks
Learning ...
8 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: dir copy

hi,

use rsync for thi purpose.

or tar cvfp some_file_name.tar /backup_dir,

and you could transfer it and restore,

scp -p 22 -r /backup_dir user@remote_server:/.


there are many solutions.

mikap
Michael Steele_2
Honored Contributor

Re: dir copy

B:/usr/mas ?? Is this a windows box? What is B:?
Support Fatherhood - Stop Family Law
OldSchool
Honored Contributor

Re: dir copy

assuming you can mount /usr from one server to the other, the man page for tar shows:

Use tar in a pipeline to copy the entire file system hierarchy under fromdir to todir:

cd fromdir ; tar cf - . | ( cd todir ; tar xf - )

similar things can be done over an ssh connection as well, I believe. there should be an example of that here but I can't locate it at the moment
OldSchool
Honored Contributor

Re: dir copy

check this thread for examples of tar over ssh, and tar pipelines

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1111049
Michael Steele_2
Honored Contributor

Re: dir copy

ITRC member since: November 16, 2001

##
I have assigned points to 544 of 1414 responses to my questions.

##
Replies I have posted that were rated between 8-10 points:

None

##

Replies I have posted that have yet to be rated, are rated N/A, or are rated between 1-7 points:

SIX TOTAL

##

Dude, you can't do you're job.

You live on this website depending upon others to complete your job, and you've done this since 2001 without assigning points to 870 people who took time out of their lives to help you keep you job. I job that you're obviously failing at.

You need to go back to those 870 people and assign points.

You're terrible.
Support Fatherhood - Stop Family Law
Steven Schweda
Honored Contributor

Re: dir copy

> Dude, you can't do you're job.

> I job that you're obviously failing at.

Seems unlikely that neither of these should
say "your", doesn't it?

> [...] 870 people [...]

Count them again? One response for each
individual person? (Or: One individual
person for each response?) Really?


Perhaps his time is worth more than yours.

> You're terrible.

Many things are.
Michael Steele_2
Honored Contributor

Re: dir copy

Steven, you are such a bore when you forget to take your Thorazin
Support Fatherhood - Stop Family Law
Patrick Wallek
Honored Contributor

Re: dir copy

Must we stoop to personal attacks, yet again? This adds absolutely NO VALUE to this thread!