12-08-2009
Copying / SCPing the files
Hi All,
Could you please help me out how can i copy the file from one system to another using scp.
For example - i have systems A,B,C in one location
And i have systems D,E,F in second location.
Now, I wan to copy the files from Systems A->D, B->E, C->F using scp in loop or any condition statements...
Please help me out!!!
-Sandeep
Last edited by sdosanjh; 12-08-2009 at 02:19 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I like to know the command structure of copying files/directories from a unix box using telnet session to a windows box. (4 Replies)
Discussion started by: alpheusm
4 Replies
2. Solaris
I am new user to solaris and installed solaris operating system on full Harddisk 120Gb. I am unable to copy music files to desktop and /home directory.
One thing happened while registering is- i entered login-root and its password. The message prompted your system is crashed. Is it because of... (1 Reply)
Discussion started by: patilmukundraj
1 Replies
3. Shell Programming and Scripting
hi
I want to copy all files from the current directory and move to .archive file.
Moreover,I want to add .bak to each file name, that will be copied.
How can I do that? (4 Replies)
Discussion started by: tjay83
4 Replies
4. Solaris
Hi,
I understand that to copy files across server, the feasible way will be using scp command. Am I right?
What if the two servers are not connected to a network? If by using a cross cable to link up both the server, what will be the best (fastest) way to copy files across? scp as well?
... (3 Replies)
Discussion started by: user50210
3 Replies
5. UNIX for Advanced & Expert Users
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Discussion started by: Hangman2
2 Replies
6. UNIX for Dummies Questions & Answers
Hi, I was wondering how I would copy a file from a server to my computer while being logged into the server via ssh. I know I can get the file by using scp or sftp while logged out, but is there a way to do this while in an ssh connection? (3 Replies)
Discussion started by: Colecf
3 Replies
7. Shell Programming and Scripting
Hi All,
I'm trying to list some files from my log directory
and files are like this
log.20110302_20.gz
log.20110302_21.gz
log.20110302_22.gz
log.20110302_23.gz
log.20110303_00.gz
log.20110303_01.gz
log.20110303_02.gz
............
log.20110311_22.gz
log.20110311_23.gz... (2 Replies)
Discussion started by: thelakbe
2 Replies
8. Shell Programming and Scripting
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
Discussion started by: linuxadmin
4 Replies
9. Shell Programming and Scripting
All,
I need to grab and rename common files from several unique directory structures. For example, the directory structures looks like:
/unique_dir/common/common/common/person_name_dir/common_file.txt
There are over 90,000 of these text files that I'd like to put in a single directory as... (5 Replies)
Discussion started by: hburnswell
5 Replies
10. Shell Programming and Scripting
I'm trying to do this exact same thing, so far I have created this to move files
i've named my script CP.sh
#!/bin/bash
cd /root/my-documents/NewDir/
for f in *.doc
do cp -v $f root/my-documents/NewDir $f{%.doc}
done
When i go to run this in the console i type, bin/sh/ CP.sh
but it... (7 Replies)
Discussion started by: MKTM_93_SIMP
7 Replies
LEARN ABOUT HPUX
mountall
mountall(1M) mountall(1M)
NAME
mountall, umountall - mount and unmount multiple file systems
SYNOPSIS
FStype] [file_system_table |
FStype]
DESCRIPTION
is used to mount file systems according to file_system_table. By default, is the file_system_table. If a dash is specified, reads
file_system_table from the standard input; the standard input must be in the same format as the
Before each file system is mounted, a check is done using (see fsck(1M)) to ensure that the file system is mountable. If the file system
is not mountable, it is repaired by before the mount is attempted.
causes all mounted file systems except the non-removable file systems such as to be unmounted.
Options
and recognize the following options:
Specify the file system type
(FStype) to be mounted or unmounted.
Specify action on local file systems only.
Specify action on remote file systems only.
Send a signal to processes that have files opened.
Attempt to mount all the unmounted file systems. This option will not perform the file system consistency check and repair.
Perform the file system consistency check and repair on all unmounted file system. This option will not mount the file systems.
DIAGNOSTICS
Error and warning messages may originate from or See fsck(1M), mount(1M), or fuser(1M) to interpret the error and warning messages.
EXAMPLES
Mount all unmounted file systems listed in
Mount all local file systems listed in
Mount all remote file systems listed in
Mount all local hfs file systems:
Unmount all NFS file systems and kill any processes that have files opened in the file system:
WARNINGS
especially with the option, should be used with extreme caution, because it can cause severe damage.
The option may not be available in future releases.
may not be effective with some cases of LOFS file systems.
FILES
Static information about the file systems
Mounted file system table
SEE ALSO
fsck(1M), mount(1M), fuser(1M), mnttab(4), fstab(4), signal(2)
mountall(1M)