coping files from unix to windows

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers coping files from unix to windows
# 1  
Old 08-13-2009
coping files from unix to windows

hey all,
i have a unix computer and a windows os computer connected in the same local network

i want to copy the etc folder to the windows computer so if my unix computer's hard disk rashes i can restore it from my windows computer.

my first problem is i'm kinda lame with unix...i know some very basic stuff....but other than that....

my second problem is i'm able to connect to the unix machine through i program called "putty" though i only get the terminal window and cant copy the files through this programm.

i've tried opening a ftp on the run command on windows using the
//ip address
but didnt succeed

can you guys help me?
# 2  
Old 08-13-2009
Install psftp on your PC - it is another PuTTy companion program, download from the same site as PuTTy.

Warning: DOS and windows mess up UNIX files, do don't ever mess with files on the PC - the files you want to put back on unix later.

Your best bet is to tar the directory, then copy the tarfile to windows.
as root on unix:
tar -cvf myetc.tar  /etc

then psftp the myetc.tar file back to windows.

Look around the forum for more help on tar. Also, I'm sure that just saving /etc is never going to save your bacon if the unix box croaks. Maybe make some things easier later on. You should make a full backup. The only way to fly.
# 3  
Old 08-14-2009
If you are gonna do this on a regular basis, I would recommend you look into setting up rsync. Plenty of google resources out there on how to do this.
# 4  
Old 08-14-2009

You won't go a long way to recovering your UNIX system just by backing up /etc.

You should invest in and investigate implementing a backup / disaster recovery policy.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error files count while coping files from source to destination locaton as well count success full

hi All, Any one answer my requirement. I have source location src_dir="/home/oracle/arun/IRMS-CM" My Target location dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct" my source text files check with below example.text file content $fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies

2. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

3. Shell Programming and Scripting

Coping files that containing 2010

I want to use the find command to copy files that contain 2012 from one directory to another. I tried find /Volumes/movies1 -name "*.2012.*" -exec cp -nRv "{}" /Volumes/pdrive/ \; (2 Replies)
Discussion started by: codecaine
2 Replies

4. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\ This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

5. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

6. UNIX for Dummies Questions & Answers

Coping Files for a specific date range

Hi, we have file name appended by date in yymmdd format .. ex: abc090101.dat I need to copy all the files between abc090101 to abc090331.. could you plz help me.. Thanks. (1 Reply)
Discussion started by: kolariya4u
1 Replies

7. Shell Programming and Scripting

coping files, need to exclude certain files

I have two directories that contain data files. I would like to create a script that would copy all data files (*.dbf) from these directories to another location, except for 4 specific files. How do I exclude those files from my cp command? (4 Replies)
Discussion started by: soliberus
4 Replies

8. Shell Programming and Scripting

Coping files from server to local

This is my first post, so first I'd like to say hello to everyone. Here's the issue I'm having...I run a macro against multiple log files every morning. The procedure is sort of time consuming. I have to log into the box where there are stored, then ftp/download them to my local drive using... (3 Replies)
Discussion started by: jhofilena
3 Replies

9. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

10. UNIX for Dummies Questions & Answers

coping all files from a directory

Hello, i have a directory;say /home/pavi i has some files and every day files keep adding to it. i am writing a shell script which copies all the files from this directory to another.say /home/tom/tmp how do i copy all the files from /home/pavi to /home/tom/tmp all the files in the... (1 Reply)
Discussion started by: pavan_test
1 Replies
Login or Register to Ask a Question