copying the dir/subdir structure from one server to another?
Hi All,
I want to copy the dir/subdir structure from SERVER-A to SERVER-B without copying all the files in each dir.
Is it possible using SCP / SFTP command?
For example,
SERVER-A has following two dir/subdirectories and files under each subdir.
When I am done issuing this command, following dir/subdir structure should be on SERVER-B but no files should be copied.
SERVER-B
Moderator's Comments:
Please use next time code tags for your code and data
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 have a script
compareFiles()
{
find /tmp/Satya -type f | \
while read filename1
do
echo "----------------------------------------$filename1"
find /tmp/Satya -type f | \
while read filename2
do
if diff $filename1 $filename2
then
echo "Both files... (3 Replies)
hi:
I have some files like this
folder1/recording1.mp3
folder1/docs/budget.doc
folder2/others/misc.mp3
folder3/others/notes.doc
all this folders and files are under the mp3 folder.
I would like to move just the mp3s to another folder but retain the subdir structure i have.
So if... (4 Replies)
I have created a directory structure and under the directory subdirectories and files are there.I need to move the entire thing
to another path.How can i write a script to do that.
currently the path of files is as below :
/data1/serial/mcycle/archive : under this path differnt sub dir exist ... (6 Replies)
Hello, I have a directory www with multiple directories. Every directory has site name with .htm, .html, .php files or sub directories with .htm, .php, .html file as example
- www
- sitename 1
- site 1
- sitename 2
- sitename 3
What I'm looking for is a... (7 Replies)
Hey all,
i want to copy only the file names from an ftp server (directory and all sub directory) to a text file in another server (non ftp), i.e. i want to recursively move through directories and copy only the names to a text file.
any help is appreciated...thank you in advance (1 Reply)
Hi,
I want to run git status for the dir which has subdir ".git" in it with dir path mentioned in output log?
If a dir does not have .git subdir then skip that dir.
Dir will have 100 main dirs & 500 + subdirs and so on.
I appreciate all your help :b: (4 Replies)
HI,
I need to move all files from a dir & its all subdir to Archive folder which is indise dir only. and moved filename should changed to complete path ( Like Dir_subdir_subdir2_.._filename ). also all files names shoud capture in a file in order to mail
I written below code ... (11 Replies)
I am trying to figure out a way to script copying specific files from one dir structure to another.
I have a dir structure like this:
dira/author 1/book 1/file a.epub
/book 2/file b.epub
/author 2/book 1/file c.epub
/author 3/book 1/file d.epub
/book 2/file... (2 Replies)
How do I create a tar file for only dir and its subdir structures?? (4 Replies)
Discussion started by: vx04
4 Replies
LEARN ABOUT DEBIAN
globus-gridftp-server-setup-chroot
GLOBUS-GRIDFTP-SERVER-SETUP-CHROOT(8) Globus Toolkit GLOBUS-GRIDFTP-SERVER-SETUP-CHROOT(8)NAME
globus-gridftp-server-setup-chroot - creates the specific contents of a directory that can specified as a root of the file system tree
exposed by the Globus GridFTP server
SYNOPSYS
globus-gridftp-server-setup-chroot [-c certificate_dir] -r chroot_path_to_create
DESCRIPTION
GridFTP server can be configured to restrict access to specific path using the command line option -chroot-path of the globus-gridftp-
server command. The specified path will become the new root after authentication.
That path must contain a valid certificate structure, and the files /etc/passwd and /etc/groups.
The command globus-gridftp-server-setup-chroot helps creating such a suitable directory structure.
OPTIONS -r chroot_path_to_create
Creates in chroot_path_to_create the directory structure expected by the globus-gridftp-server command, when started with -chroot-
path command line option.
-c certificate_dir
Specifies explicitly the directory from which the certificates will be copied into the directory chroot_path_to_create. The default
path is /etc/grid-security/certificates.
AUTHOR
Initiative for Globus in Europe (IGE), http://www.ige-project.eu
COPYRIGHT
Copyright (C) 2012 Initiative for Globus in Europe (IGE)
SEE ALSO globus-gridftp-server(8)
February 16th, 2012 GLOBUS-GRIDFTP-SERVER-SETUP-CHROOT(8)