08-07-2009
tar -czvpf file.tar.gz <directory>
'p' in option can help you
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Is there a simple way to copy data from one server to a different server?
Seems that if 2 servers are on the same network, there should be a simple way to copy between the two.
Not just one file. I need to copy a whole directory with subdirectories from one server to a different one.
I... (9 Replies)
Discussion started by: Docboyeee
9 Replies
2. Shell Programming and Scripting
Is there a way to change subdirectories permission plus the files in the subdirectories in a directory i specified without using the find command? (1 Reply)
Discussion started by: mingfei2006
1 Replies
3. Shell Programming and Scripting
I would like to change permissions recursively on a remote folder.
Seems like sftp has a limitation, I am only able to change permission on a individual file..
sftp > chmod 777 /usr/local/apache/docs/test.txt
It would be great if someone has more knowledge on how this is doable recursively? (1 Reply)
Discussion started by: almeisan1
1 Replies
4. UNIX for Dummies Questions & Answers
I have two servers. I would like to copy some files from one directory on server A into the same directory on server B.
Its not all the files in in the directory, just some of them.
Is there a way to make a file list in a txt file and then somehow copy all the files in that list in one go to... (6 Replies)
Discussion started by: Sepia
6 Replies
5. UNIX for Dummies Questions & Answers
Hi there,
I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix.
Can someone help me to go-about doing this in one shot.
Cheers,
RN (2 Replies)
Discussion started by: karthickrn
2 Replies
6. Shell Programming and Scripting
Any one advice here-
need to copy some files from one server to other server thru shell programming. (8 Replies)
Discussion started by: samkhu
8 Replies
7. UNIX for Dummies Questions & Answers
Is there any option to copy files from a different server other than using an SCP command???
thanks,:b:
Arun manas (2 Replies)
Discussion started by: arunmanas
2 Replies
8. UNIX for Dummies Questions & Answers
I need to copy huge set of data(files & floder) from one server to other.
Can any one guide me.I have tried throught ftp mget but it is vain...floder are not moving......
Do suggest me any good method (12 Replies)
Discussion started by: kkalyan
12 Replies
9. Shell Programming and Scripting
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
Discussion started by: gvkumar25
4 Replies
10. Shell Programming and Scripting
I am trying to copy code to remote server, doing something like this
However it is copying one file and than the script exits
i=0; j=0
while read fn; do
dir=${fn%/*} # Gets directory path
fnm=${fn##*/} # Gets filename excl. path
rgx_nwk="s/${nwk}/${nwk}.sac/g"
... (2 Replies)
Discussion started by: kristinu
2 Replies
ypxfrd(8) System Manager's Manual ypxfrd(8)
NAME
ypxfrd - High speed NIS map transfer daemon
SYNOPSIS
/usr/sbin/ypxfrd
DESCRIPTION
The ypxfrd daemon is the transfer agent that handles map transfer requests from yppush on the master server and ypxfr on slave servers and
clients. This program performs the actual transfer of the NIS maps to slave servers and clients. Typically, the maps are transferred to
all slave servers and clients unless the transfer is restricted to those subnets or hosts by an entry or entries in the /etc/yp/securenets
file. See ypserv(8) for information on this file.
The ypxfrd daemon is activated at system startup time by an entry in the /sbin/init.d/nis file of an NIS master server machine. If the log
file /var/cluster/members/{memb}/yp/ypxfrd.log exists, ypxfrd appends all its output to that file. You can use the log file to retain a
record of what was attempted, and the results.
See ypfiles(4) and ypserv(8) for an overview of NIS.
RESTRICTIONS
The ypxfrd daemon transfers NIS maps stored as ndbm files only. It does not transfer maps stored as btree or hash files.
FILES
The ypxrfd log file. Each cluster member has its own copy.
SEE ALSO
Commands: yppush(8), ypserv(8), ypxfr(8)
Files: ypfiles(4)
ypxfrd(8)