Need to copy a directory structure from one server to another
Hello All,
I have got a dev server and a production server will call it as D server and P server.
I have a dir structure in my D server and i need to create the same dir structure in P server also using a shell script.
If i do a find . in my D server, i am getting an o/p like :-
.... and so on .. D server contains directories like :-
Inside this lot of other dir/files ..
So I need to create files and directories (with same content)as we can see in D server to P server. I am using a mail parsing mechanism to create files and directories in P server. It is like :-
My worry is how will i create the exact file/dir structure ..?
Thanks in advance
Renjesh
Last edited by Franklin52; 03-08-2011 at 03:10 AM..
Reason: Please use code tags, thank you
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Hi,
I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
i have a text file as.
/database/sp/NTR_Update_Imsi_List.sql
/database/sp/NTR_Update_Imsi_Range_List.sql
/database/sp/NTR_Vlr_Upload.sql
/database/tables/StatsTables.sql
/mib/ntr.mib
/mib/ntr.v2.mib
/scripts/operations/ntr/IMSITracer.ph
/scripts/operations/ntr/IMSITracer.pl ... (3 Replies)
I have the below code to recurse through a given file path. I am able to go to the leaf level once recursively but traversing out is not possible as the required varaibles don't have the values on return. Both typeset and local don't work for my variable definitions. I have the o/p of the sample... (2 Replies)
I am trying to write a script which has to copy the directory structure from my system to another system on the network. But I dont want the files to be copied.
I think I have to start with copying all subdirectories names in a directory to a system on the network.
Here's the case:
Source... (1 Reply)
Hi Expert Team,
I performed the below piece of code to copy the latest file in the remote server's directory to the same server's other directory.
But it is not working properly.
How can i handle this? Can you please help me..?
ssh ${REMOTE_USERID}@${REMOTE_HOSTNAME} "cp -p `ssh... (3 Replies)
Hello Unix Gurus Who I Hope Reads This,
I have quasi-inherited control over a Linux cluster at a university research lab. The post-doc that set it up is gone, and the person in charge of administering the cluster doesn't know a ton about Linux. Amongst other things, I want to use the cluster... (0 Replies)
Hello, I already do some question about this topic. I already establish the conection from the server (Centus) whit the windows PC using SSH. Now I have two problems:
1- The server always ask me about a password to copy the files to the windows pc, I don't know how to avoid this, if someone can... (2 Replies)
Hi,
I have a serverA with Directory "/opt/app/myfiles" which is 8.5GB with more than 40000 files and 45 folders in it.
I wish to transfer the folder "/opt/app/myfiles" tree structure with all the sub-directories and skip all files to another serverB.
I would appreciate a command that... (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT ULTRIX
dxmkfontdir
dxmkfontdir(1X)dxmkfontdir(1X)Name
dxmkfontdir - Create a list of fonts for the X server.
Syntax
dxmkfontdir [directory-names]
Description
The dxmkfontdir command creates files that list font names and the font files to which the names correspond, for use when the X server
starts up. In each directory specified as a command argument, dxmkfontdir creates the directory's list of fonts and places it in a file
called fonts.dir. If you omit arguments, dxmkfontdir creates a fonts.dir file for the current directory.
The fonts.dir file lists each font file and gives the name of the font in that file. To obtain font names, dxmkfontdir searches the files
in the directory for a property named FONT. If the FONT property is absent, dxmkfontdir uses the names of PCF (.pcf), BDF (.bdf), and com-
pressed BDF (.bdf.Z) files, omitting their suffixes. If a font exists in multiple formats, the PCF format is used.
When the X server starts up, it looks for a fonts.dir file in each font directory in the font path. It also looks for a fonts.alias file
in each directory.
Font Aliases
You can create or edit the fonts.alias file to assign new names to existing fonts. X clients can then use the alias names to request fonts
from the server. A font alias file can be in one or any number of directories in the font path. It consists of two columns, separated by
white space. The first column lists aliases; the second column contains font name patterns. Aliases can reference fonts in directories
other than the one in which the alias file exists.
To embed white space in the alias name or the font name, enclose the name in quotation marks (""). To embed quotation marks (or any other
characters), precede them with a backslash (. The following are sample entries from a fonts.alias file:
courier10 fixed
/udir/sally/fonts/courier/10.pcf "-adobe-helvetica-bold-o-normal--
24-240-15-75-p-104-1508859-1"
If the fonts.alias file contains the string FILE_NAMES_ALIASES alone on a line, each file name in the directory (without its .pcf suffix)
is automatically translated as a font name alias. For example, a file named courier10.pcf would have the font name alias courier10.
See AlsoX(1X), dxfc(1X)dxmkfontdir(1X)