09-11-2010
sorry
sorry, my mistake, it dont gona happen again...
---------- Post updated at 09:49 AM ---------- Previous update was at 09:42 AM ----------
Hello everyone, I'm really new in the bash programing, my question is simple, I guess, someone could tell me if there is a simple way of make a copy form a server to another?? , I have a server (server1) with the postgres database's backup, but I need to store this files in another server (server2), this are the data I have:
---server1---
ip: 10.31.20.4
user: root
pass: root1
address of the directory: /home/place/backup/
---server2---
ip: 10.31.20.141
user:roota
pass:root2
address where I want to copy the files: /home/place1/backup/
I really need your help...
greetings
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Can anyone tell me how can i copy data in LINUX Machine to windows XP
Thanks,
Sandeep (2 Replies)
Discussion started by: bsandeep_80
2 Replies
2. Shell Programming and Scripting
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. Programming
Hi All
I am new to Unix/sloaris.
I want to copy a directory (which conatins further sub directories and files)from sloaris to my windows.I am using PuTTy for it.
please any one guide me how to do this or share with me some piece of script. It will be very regarded
Best Wishes
MIS. (1 Reply)
Discussion started by: MIS
1 Replies
4. Solaris
Hi All
I am new to Unix/sloaris.
I want to copy a directory (which conatins further sub directories and files)from sloaris to my windows.I am using PuTTy for it.
please any one guide me how to do this or share with me some piece of script. It will be very regarded
Best Wishes
MIS. (3 Replies)
Discussion started by: MIS
3 Replies
5. Shell Programming and Scripting
is there any way to copy files from linux to windoes with out mounting ideally using a script in linux or windows which ever possible (4 Replies)
Discussion started by: robo
4 Replies
6. Shell Programming and Scripting
Hi,We have an interface which extracts data from database tables, spool the records into text files, and copy those files using SFTP to a windows server location. The target system loads these files into its database using some DTS packages in SQL Server.
This interface of exporting text files... (13 Replies)
Discussion started by: urjagadeesh
13 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I`m trying to copy an entire directory(with numerous files, folders and subfolders etc, a content size of 500gigs) from a linux machine running Red Hat Enterprise Linux 6 to an external hard drive on my windows.
I downloaded and installed psftp on my windows and I can login using psftp... (9 Replies)
Discussion started by: newbie83
9 Replies
8. UNIX for Dummies Questions & Answers
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
9. Homework & Coursework Questions
Hi guys,
I need a solution to copy files and folders without using cp-r , cp-R or any variants. So i need to code it manually. I allready have a loop
Avans Highschool Breda the Netherlands
#!bin/bash
IFS=$'\n'
if test "$1" = ""
then
wd=pwd
else
wd=$1
fi
... (7 Replies)
Discussion started by: Wolverine89
7 Replies
10. UNIX for Beginners Questions & Answers
To copy the file from windows to linux i use pscp command(pscp source user@destination). Know i want to copy the latest modified or created files from windows to linux. could any one please help me out with it.
Thanks and Regards,
Sourabh (2 Replies)
Discussion started by: SourabhChavan
2 Replies
LEARN ABOUT CENTOS
gentest
GENTEST(1) Test Suite GENTEST(1)
NAME
gentest - Run random generic SMB operations against two SMB servers and show the differences in behavior
SYNOPSIS
gentest {//server1/share1} {//server2/share2} {-U user%pass} {-U user%pass} [-s seed] [-o numops] [-a] [-A] [-i FILE] [-O] [-S FILE] [-L]
[-F] [-C] [-X]
DESCRIPTION
gentest is a utility for detecting differences in behaviour between SMB servers. It will run a random set of generic operations against
//server1/share1 and then the same random set against //server2/share2 and display the differences in the responses it gets.
This utility is used by the Samba team to find differences in behaviour between Samba and Windows servers.
OPTIONS
-U user%pass
Specify the user and password to use when logging on on the shares. This parameter is mandatory and has to be specified twice.
-s seed
Seed the random number generator with the specified value.
-o numops
Set the number of operations to perform.
-a
Print the operations that are performed.
-A
Backtrack to find minimal number of operations required to make the response to a certain call differ.
-i FILE
Specify a file containing the names of fields that have to be ignored (such as time fields). See below for a description of the file
format.
-O
Enable oplocks.
-S FILE
Set preset seeds file. The default is gentest_seeds.dat.
-L
Use preset seeds
-F
Fast reconnect (just close files)
-C
Continuous analysis mode
-X
Analyse even when the test succeeded.
VERSION
This man page is correct for version 4.0 of the Samba suite.
SEE ALSO
Samba
AUTHOR
This utility is part of the Samba[1] suite, which is developed by the global Samba Team[2].
gentest was written by Andrew Tridgell.
This manpage was written by Jelmer Vernooij.
NOTES
1. Samba
http://www.samba.org/
2. Samba Team
http://www.samba.org/samba/team/
Samba 4.0 06/17/2014 GENTEST(1)