Copy directory from Linux to Windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Copy directory from Linux to Windows
# 1  
Old 09-11-2010
Copy directory from Linux to Windows

Hola a todos, soy realmente nuevo programando en bash, y aún estoy encontrando bastantes baches Smilie, mi pregunta es simple, supongo, alguien podria decirme si existe una manera facil de copiar un directorio de un server a otro?, sucede que en un server(server1) tengo los backup de las bases de datos de postgre(este código ya lo hice en bash), pero necesito guardar esos backup en otro servidor(server2), estos son los datos que tengo:

---server1---
ip: 10.31.20.4
user: root
pass: root1
dirección del directorio a copiar: /home/place/backup/

---server2---
ip: 10.31.20.141
user:roota
pass:root2
dirección para hacer la copia: /home/place1/backup/

realmente les voy a agradecer la ayuda.

saludos
# 2  
Old 09-11-2010
Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.
# 3  
Old 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
# 4  
Old 09-11-2010
Hi.

Try with the scp command:

Code:
scp -pr /home/place/backup root@10.31.20.141:/home/place1

ps: no need to apologise. I have renamed your thread into English.
# 5  
Old 09-11-2010
And how is provided the user and password to stablish the connection? Do I need SSH??
# 6  
Old 09-11-2010
Hi.

The user is already provided with root@. The password you need to enter, if you don't have shared keys set up between the two servers.

If you are unable to use scp, there is also rcp, ftp, NFS or rsync, depending on your exact needs.
# 7  
Old 09-11-2010
from linux to windows

Well I really need cto copy those backups from the Linux server to a PC with Windows, it can be Windows SP 3, I found some information where they said that's possible if SSH service is used for the identification, but I dont understand too much about it. Can you help me?? Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Modified or latest files copy from windows to Linux

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

2. Homework & Coursework Questions

Linux copy directory without using cp -r or any variant

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

3. 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

4. UNIX for Dummies Questions & Answers

Copy everything from remote Linux to external hard drive in windows

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

5. Shell Programming and Scripting

Generate and copy files in UNICODE format from Linux to Windows

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

6. Shell Programming and Scripting

copy files from linux to windows

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

7. Solaris

Copy directory from solaris to windows.

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

8. Programming

Copy directory from solaris to windows.

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

9. 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

10. UNIX for Advanced & Expert Users

how can i copy data in LINUX Machine to windows XP

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
Login or Register to Ask a Question