| Command |
Description
|
| tar xvf phkl.tar |
extract files from tar file
phkl.tar
|
tar cvf adabas.tar *.*
|
creates tar file adabas.tar and
puts all files in it
|
tar -cvf - . | ( cd /tmp ; tar
-xvf - )
|
"push" tar copy - this will copy
all files < 2GB in size from the current directory to /tmp. It
will
copy directory trees and maintain the proper ownership and
permissions. This is faster than cp -rp.
|
remsh SERVER -l root "cd
SOURCEPATH; tar cvf - . " | tar xvf - .
|
"pull" tar copy across a network
- this will copy all files (even > 2GB??) in SOURCEPATH on a
remote
system to the current directory. It will copy directory trees and
maintain the proper ownership and permissions.
|
tar cvf - . | remsh SERVER -l
root "cd SOURCEPATH; tar xvf - . "
|
"push" tar copy across a network
- this will copy all files (even > 2GB??) from the current
directory
to the SOURCEPATH on a remote system. It will copy directory
trees and
maintain the proper ownership and permissions |