Sponsored Content
Top Forums Shell Programming and Scripting Unix shell script to Copy files from one Windows server to another Windows server. Post 302568009 by Chubler_XL on Tuesday 25th of October 2011 11:21:41 PM
Old 10-26-2011
If you have smbclient available you could pipe tar output from one instance to tar extract in another something like:

Code:
smbclient //boldls-mwe-dev4/MailAssurety -T c - Baraboo/BRN-000001 | smbclient //rrwin-ewhd04.ecomad.int/MailAssurety -D Jobs/Read -T x -

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script to ftp the files from windows to unix server

Hi, I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine. Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files from windows to unix box.When I searched in the... (10 Replies)
Discussion started by: kavithakuttyk
10 Replies

2. Shell Programming and Scripting

Copy a directory from a server (UNIX) to a PC (Windows)

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)
Discussion started by: yeestrada
2 Replies

3. Shell Programming and Scripting

Unix shell script to delete files on windows server

Hi experts, can anyone suggest me on the below: how to write a shell script to search and delete files on windows server. -script runs on unix box -it should search for specific files on windows server and delete them periodically. (2 Replies)
Discussion started by: chpradeepch
2 Replies

4. Shell Programming and Scripting

Need Shell Script to copy files from hp UNIX to windows server 2008

Need Shell Script to copy files from hp unix to windows server 2008 I tried to google and found some options but nothing worked I want a script to copy a file in unix to windows server so I can schedule the script on daily basis.Please help me its more needful for me. Let me know if any... (4 Replies)
Discussion started by: Lucky2Bv
4 Replies

5. Shell Programming and Scripting

Copy files from Linux server to Windows server

Hi All, I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers. So i am looking for a script to transfer the file automatically from Linux server to Windows server? Please advise. Thanks... (3 Replies)
Discussion started by: arunmanas
3 Replies

6. UNIX for Dummies Questions & Answers

Copy files from Linux server local windows machine using a shell script

Hello, I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine. Is this possible.? Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

7. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

8. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies

9. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies
AMSAMBA(8)						  System Administration Commands						AMSAMBA(8)

NAME
amsamba - Amanda Application to interface with smbclient DESCRIPTION
Amsamba is an Amanda Application API script. It should not be run by users directly. It uses smbclient to backup and restore data. The diskdevice in the disklist (DLE) must have the form '//CIFSHOST/SHARE/SUBDIR' where CIFSHOST is the CIFS host containing the data to be backed up, SHARE is the share to connect, and subdir is the subdirectory to backup. '/subdir' can be ommited, in which case the complete share is archived. Unlike most applications, amsamba backs up and restores data located on a different system from that where amsamba itself runs. The host containing the data is the CIFS host. In practice, amsamba is usually run on the same system as the Amanda server, with a DLE like localhost "//CIFSHOST/SHARENAME" amsamba-dumptype Include or exclude can be used, but not both. The path for 'exclude list' or 'include list' must be absolute path on the CIFS host. The estimate calculates the complete size of the share, without regard for include or exclude directives. It will be larger than the actual dump if you use include or exclude. Using 'estimate server' in the dumptype could give better estimate. PROPERTIES
This section lists the properties that control amsamba's functionality. See amanda-applications(7) for information on application properties and how they are configured. SMBCLIENT-PATH The path to the smbclient binary. The default is set when Amanda is built by the --with-smbclient configure option. GNUTAR-PATH The path to the gnutar binary. The default is set when Amanda is built by the --with-gnutar configure option. gnutar is used to create the index. AMANDAPASS Location of the amandapass file, defaulting to "$CONFIG_DIR/amandapass". Relative pathnames are relative to the configuration directory, "$CONFIG_DIR/<config>". Note that this file is located on the client, not on the server. The format of the file is as follow: Sharename User%Password Domain Sharename is '//HOST/SHARE' without the SUBDIR. Sharename can be quoted, it can be '*' to match all share, it can be '//pc-host/*' to match all share on pc-host. User is the username use to connect to the share. Password is the password use to connect to the share. '%Password' is optional if the user can connect to the share without password. 'User%Password' is optional, the user 'guest' without password is use to connect to the share. Domain is optional. Example: //another-pc/share otheruser%otherpw domain //another-pc/share otheruser%otherpw //another-pc/share myuser mydomain //another-pc/share myuser //another-pc/share ALLOW-ANONYMOUS This username without password is used to connect to the share if no matching entry is found in the amandapass file. DIRECTORY For restore command only, the data is recoved in that directory. Must be a unix path for "tar" RECOVER-MODE or a smb path for "smb" recover-MODE. RECOVER-MODE "tar" or "smb", default to "tar". If "tar", the data is recovered on the local machine, If "smb", the data is recovered on the smb client machine. INCLUDE AND EXCLUDE LISTS
This application supplies exclude lists via the smbclient -TX option. Normal shell-style wildcard expressions, using * and ?, are not supported. All expressions are matched only from the base directory of the DLE. Expressions that match a directory may have a leading or trailing "/". Example expressions: ./temp-files # exclude top-level dir "temp-files" entirely ./temp-files/ # same /temp-files # same temp-files # same ./temp-files/* # BAD: does nothing *.iso # BAD: does nothing proxy/local/cache # exclude "cache" in dir "proxy/local" Include lists are supported only if excludes are not given. They are handled via the smbclient -TI option. Include matching is identical to the exclude matching described above. EXAMPLE
define application app_amsamba { property "SMBCLIENT-PATH" "/usr/bin/smbclient" property "GNUTAR-PATH" "/bin/tar" property "AMANDAPASS" /etc/amandapass" property "ALLOW-ANONYMOUS" "guest" } SEE ALSO
amanda(8), amanda.conf(5), amanda-applications(7) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHOR
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.3 01/10/2013 AMSAMBA(8)
All times are GMT -4. The time now is 02:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy