09-17-2011
Move folders from Multiple remote Servers to my local computer
I have 20 Servers (They are Windows 2003) that I remote every day using names or IP address and type in my username & Password then copy folders manually to my local computer.
I'm wondering if i can just run script(s) from my local computer to do this job without using FTP(because of security purposes)?
I would appreciate any help please!
-Bakre
Last edited by idiazza; 09-20-2011 at 10:39 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi.
I'm trying to copy multiple folders from the remote machine to the local machine. I wrote a batch file to run an ftp window.
The problem I am having is that the only command to copy files is mget *, and this copies only files, not folders.
For example, ftp ts555
cd ts555/test
' test... (5 Replies)
Discussion started by: leenyburger
5 Replies
2. UNIX for Dummies Questions & Answers
Experts,
Im trying to remote into a server, run a script that resides on that server and capture the information displayed & store in a local file.
I struggled with this yesterday & finally that script is working now.
Now, here is a scope creep and the script that I wrote for 1 remote... (2 Replies)
Discussion started by: OMLEELA
2 Replies
3. UNIX for Dummies Questions & Answers
Can someone please help me with copying from remote computer to local computer? I have Winscp installed but for some reason i can seem to get into the server using winscp.
I am currently logged on to the server, so its not a case of remote host unavailable. I really am not sure if the syntax... (2 Replies)
Discussion started by: dollypee
2 Replies
4. Shell Programming and Scripting
Hi All,
I am facing problem running a script which triggers another script in multiple remote servers. my script in my local server looks like below
ssh server1 "sudo -u uname /usr/local/script/start.sh &2>&1 >/dev/null "
ssh server2 "sudo -u uname /usr/local/script/start.sh &2>&1 >/dev/null "... (7 Replies)
Discussion started by: sain
7 Replies
5. Shell Programming and Scripting
Hello all,
I would appreciate any help to write a script. I have folder A which contains over 30 thousands xml files, I would like create multiple folders and move those files (500 in each folders).
Thank you (1 Reply)
Discussion started by: mmsiddig
1 Replies
6. Solaris
So I have a scriptlet called solaris_command:
for i in \
server1 server2 server3
do
echo $i
ssh $i $1
echo ""
done
I then use that as a command in multiple scripts to allow for data gathering for all virtual hosts in the environment thusly:
solaris_command "cat... (3 Replies)
Discussion started by: os2mac
3 Replies
7. Shell Programming and Scripting
Hi all,
I am baffled on this. Solaris Irix system.:confused:
I have 4 servers all connected to one another, :b: I need to write a script line that would login on to server 1-3 ($HOST) start a script in the back ground and log off while the back ground script runs over a length of time.:eek:
... (10 Replies)
Discussion started by: weddy
10 Replies
8. Shell Programming and Scripting
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies
9. Shell Programming and Scripting
Hello all,
i'm trying to create a report by greping a pattern on multiple remote hosts and creta a simple report,
actually i did this, is ther any better way to do this.
#!/bin/bash
for host in `cat RemoteHosts`
do
ssh $host -C 'hostname 2>&1; grep ERROR /var/log/WebServer.log.2019-09-21... (0 Replies)
Discussion started by: charli1
0 Replies
10. Shell Programming and Scripting
I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles"
rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies
folders(1) General Commands Manual folders(1)
NAME
folders - list folders and contents (only available within the message handling system, mh)
SYNOPSIS
folders [+folder] [msg] [options]
OPTIONS
Lists only the name of folders, with no additional information. This is faster because the folders need not be read. Prints a list of the
valid options to this command. Lists the contents of the folder-stack. No +folder argument is allowed with this option. Re-numbers mes-
sages in the folders. Messages are re-numbered sequentially, and any gaps in the numbering are removed. The default operation is -nopack,
which does not change the numbering in the folder. Discards the top of the folder-stack, after setting the current folder to that value.
No +folder argument is allowed with this option. This corresponds to the popd operation in the C-shell; see csh(1). The -push and -pop
options are mutually exclusive: the last occurrence of either one overrides any previous occurrence of the other. Pushes the current
folder onto the folder-stack, and makes the +folder argument into the current folder. If +folder is not given, the current folder and the
top of the folder-stack are exchanged. This corresponds to the pushd operation in the C-shell; see csh(1). The -push switch and the -pop
switch are mutually exclusive: the last occurrence of either one overrides any previous occurrence of the other. Lists folders recur-
sively. Information on each folder is displayed, followed by information on any sub-folders which it contains. Displays only the total
number of messages and folders in your Mail directory. This option does not print any information about individual folders. It can be sup-
pressed using the -nototal option.
The defaults for folders are:
+folder defaults to all msg defaults to none -nofast -noheader -nototal -nopack -norecurse
DESCRIPTION
The folders command displays the names of your folders and the number of messages that they each contain.
The folders command displays a list of all the folders in your Mail directory. The folders are sorted alphabetically, each on its own line.
This is illustrated in the following example: Folder # of messages ( range ); cur msg (other files)
V2.3 has 3 messages ( 1- 3).
adrian has 20 messages ( 1- 20); cur= 2.
brian has 16 messages ( 1- 16).
chris has 12 messages ( 1- 12).
copylog has 242 messages ( 1- 242); cur= 225.
inbox+ has 73 messages ( 1- 127); cur= 127.
int has 4 messages ( 1- 4); cur= 2 (others).
jack has 17 messages ( 1- 17); cur= 17.
TOTAL= 387 messages in 8 folders.
The plus sign (+) after inbox indicates that it is the current folder. The information about the int folder includes the term (others).
This indicates that the folder int contains files which are not messages. These files may be either sub-folders, or files that do not
belong under the MH file naming scheme.
The folders command is identical to the effect of using the -all option to the folder command.
If you use folders with the +folder argument, it will display all the subfolders within the named folder. as shown in the following exam-
ple:
% folders +test Folder # of messages ( range ); cur msg (other files) test+ has 18 messages ( 1- 18);
(others). test/testone has 1 message ( 1- 1). test/testtwo has no messages.
TOTAL= 19 messages in 3 folders.
See refile(1) for more details of sub-folders.
RESTRICTIONS
MH does not allow you to have more than 100 folders at any level in your Mail directory.
PROFILE COMPONENTS
Path: To determine your MH directory
Folder-Protect: To set protections when creating a new folder
Folder-Stack: To determine the folder stack
lsproc: Program to list the contents of a folder
FILES
The user profile.
SEE ALSO
csh(1), folder(1), refile(1), mhpath(1)
folders(1)