Operating System - HP-UX
1836611 Members
3852 Online
110102 Solutions
New Discussion

Re: Copying log file to window system

 
Henry Chua
Super Advisor

Copying log file to window system

Hi All,
I am trying to periodically copy files from UX server to a window system. Can I use cron to do this? if so, how should this be done. what is the best practice? Can I use scp?

Best regards
Henry
4 REPLIES 4
Yogeeraj_1
Honored Contributor

Re: Copying log file to window system

hi,

you can use either a push or a pull strategy!

I would prefer to send all our log files in compressed+zip format to a windows drive that has been mounted using CIFS.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Maxim Yakimenko
Super Advisor

Re: Copying log file to window system

you can setup ftp on windows system - either built-in IIS or another GNU, I use Filezilla
Coolmar
Esteemed Contributor

Re: Copying log file to window system

Hi,

Yes you can use scp or ftp...ftp will require the password and you will have to create an netrc file or with scp you can set it up to be password-less which is easier. I installed CIFS and then just copy the log files right to the windows system, which might be your best bet.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

spex
Honored Contributor

Re: Copying log file to window system

Hi Henry,

You can absolutely use cron to do this. The best practice really depends on your particular systems, utilities, and needs. scp certainly is one option, and has several advantages over other methods:

* no need to mount a remote CIFS/NFS share ahead of time,
* in-flight compression,
* encryption,
* passwordless authentication, if so desired.

Other methods worth mentioning are ftp, sftp, rsync, as well using some form of shared storage.

Here's an example cron entry that will perform an scp using in-flight compression at 01:00 every morning:

00 01 * * * scp -C /src/path/* win-user@win-box:/dest/path/ 1> /dev/null

PCS