- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Configurate rsync on HP-UX 11.31
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2010 09:54 AM
06-03-2010 09:54 AM
Configurate rsync on HP-UX 11.31
Contamos con el programa cwRsync en Windows.
Y la versión rsync 3.0.6 bajo HP-UX
How to synchronize directories HP-UX 11.31 with Windows XP.
We have install cwRsync program in Windows.
And rsync version 3.0.6 on HP-UX.
Urrrrg. SOS. Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2010 12:33 PM
06-03-2010 12:33 PM
Re: Configurate rsync on HP-UX 11.31
"Rsync normally uses ssh for communication. It requires no special privileges for installation. You must, however, have a working ssh system. "
http://www.itefix.no/i2/node/10650
(cwRsync is a compact installation package which includes Cygwin rsync and openSSH for Windows)
So the SSH for the Windows side is covered by the cwRsync package itself, but you need a SSH system at the HP-UX side too. Fortunately, HP offers one for free: go to http://software.hp.com and search for "HP-UX Secure Shell".
You *really* should read the rsync documentation, it contains very nice examples:
http://rsync.samba.org/documentation.html
Make sure the sshd daemon is running on the HP-UX system before going forward. For some reason, HP has chosen a non-obvious name for its start-up script:
sh /sbin/init.d/secsh start
At this point, you should be able to use a command like this on the Windows side to copy things to HP-UX side:
cd \windowsdir
rsync -avz targetdir hpuxserver:/hpuxdir
The example above would copy a Windows directory \windowsdir\targetdir to /hpuxdir/targetdir on server named hpuxserver. If /hpuxdir/targetdir already exists, rsync will automatically check what's in it and will transfer only the files necessary to bring the /hpuxdir/targetdir up to date with the Windows version.
You can also use rsync to "pull" files and directories to your local system from a remote one. Again, example command for the Windows system:
cd \windowsdir
rsync -avz hpuxserver:/hpuxdir/targetdir .
(NOTE: the single dot "." means "to the current local directory")
To be able to push&pull files between the servers by entering rsync commands to the HP-UX system, you must enable either the OpenSSH service or the rsync server service on the Windows server. To use the rsync server, you must first write a configuration file for it: please read the rsync documentation for that.
When using the rsync server service, you must use two colons after the name of the remote host, for example:
cd /hpuxdir
rsync targetdir windowsserver::/windowsdir
(NOTE: the Windows standard path separator is the backslash "\", which is troublesome in Unix shells because it is used as a special escape character: you would have to write two backslashes "\\" instead of one. Fortunately, Cygwin allows the use of a forward slash instead of backslash.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2010 09:22 AM
06-07-2010 09:22 AM
Re: Configurate rsync on HP-UX 11.31
Finally we were able to syncronize files from HP-UX to Windows. Now the problem is how to keep the format of ASCII text files. Since when editing a text file transferred a square appears at the end of each line, uniting them into one line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 12:15 AM
06-08-2010 12:15 AM
Re: Configurate rsync on HP-UX 11.31
HP-UX already includes tools for this conversion: the commands dos2ux and ux2dos will convert the end-of-line characters.
Before sending a Unix text file to the Windows system, run "ux2dos filename.txt" to convert it to the DOS/Windows format.
If you have a file that is in Windows format, and you wish to edit it in HP-UX, run "dos2ux filename.txt" to convert it to Unix format first.
Some Unix editors, like vim and emacs, can also edit Windows-formatted text files directly when an appropriate mode is selected. There are also text editors for Windows which can handle Unix-formatted files: for example, "metapad:
http://liquidninja.com/metapad/
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 08:06 AM
06-08-2010 08:06 AM
Re: Configurate rsync on HP-UX 11.31
Como resultado tomo bastante tiempo su ejecución. Luego se realizo la sincronización y del lado de windows continua con el mismo problema al final de cada linea aparece el cuadrado y une las lineas en los archivos de texto.
Existe alguna otra opción????? O a su vez existe alguna sentencia que se pueda añadir al script del cwRsync y sincronizar en modo ASCII como en FTP.
Thank you. Ux2dos command was applied for all required files in the HP-UX this: ux2dos *. txt
As a result took a long time execution. Then you synchronize windows side and continuing with the same problem at the end of each line shows the square and joined the lines in the text files.
Is there any other option ????? Or turn there is a sentence that can be added to the script and synchronize cwRsync ASCII mode FTP.