Computing.Net > Forums > Unix > unix file transfer to windows

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

unix file transfer to windows

Reply to Message Icon

Original Message
Name: tagem
Date: November 13, 2005 at 12:16:56 Pacific
Subject: unix file transfer to windows
OS: Windows NT
CPU/Ram: Pentium 4
Comment:

Hello,
I am new to korn shell. There is a file that gets produced every night and I want to automatically transfer this from unix to a windows shared area without any manual intervention.
Does anyone know how I can do this via command line or has anyone got a script that I could use.

Thanks



Report Offensive Message For Removal


Response Number 1
Name: nz_boy
Date: November 14, 2005 at 13:40:48 Pacific
Reply: (edit)

use rsync do a man on it.or read here.


I do local backups on several of my machines using rsync. I have an
extra disk installed that can hold all the contents of the main
disk. I then have a nightly cron job that backs up the main disk to
the backup. This is the script I use on one of those machines.

#!/bin/sh

export PATH=/usr/local/bin:/usr/bin:/bin

LIST="rootfs usr data data2"

for d in $LIST; do
mount /backup/$d
rsync -ax --exclude fstab --delete /$d/ /backup/$d/
umount /backup/$d
done

DAY=`date "+%A"`

rsync -a --delete /usr/local/apache /data2/backups/$DAY
rsync -a --delete /data/solid /data2/backups/$DAY

The first part does the backup on the spare disk. The second part
backs up the critical parts to daily directories. I also backup the
critical parts using a rsync over ssh to a remote machine


Report Offensive Follow Up For Removal

Response Number 2
Name: Ravi kumar
Date: November 15, 2005 at 20:02:18 Pacific
Reply: (edit)

Hi,

rsync is the one way.
another way is using samba. share the file system in the unix in which all your backup will be placed. those files/folders can be access by all windows who have access to the unix machine.


Report Offensive Follow Up For Removal

Response Number 3
Name: Mukesh Kesharwani
Date: December 1, 2005 at 09:02:49 Pacific
Reply: (edit)

Same question is asked to me some time back too.

Solution is described on
http://kesharwani.blogspot.com/2005_07_01_kesharwani_archive.html

Mukesh Kesharwani
CISSP, CCNA, SCSA,CUA,CNA, MCSE,MCP+I,CCNSE,Certified HIPPA Security

http://www.keekar.com


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software