rsync in AIX


 
Thread Tools Search this Thread
Operating Systems AIX rsync in AIX
# 1  
Old 03-29-2011
rsync in AIX

Hi expert,

I am using AIX 64bit version 5.3

I need to configure rsync on it so that we can switch files from one server to other automatically.

Please suggest some doc/way.

Thanks is ADV
# 2  
Old 03-29-2011
  1. Click on the following link: CLICK ME
  2. Take the 3rd entry, have a glimpse at the rsync documentation and play around with rsync to get familiar with it. It is very easy - don't hesitate to ask for a particular problem but maybe in a non AIX-related sub forum.

Last edited by zaxxon; 03-29-2011 at 07:36 AM..
# 3  
Old 03-29-2011
Or something like this : Let me google that for you

Any ways, here is the command I use :
Code:
rsync --verbose --relative --recursive --update --delete --perms --owner --group --times --links  --safe-links --super --compress --one-file-system --devices $sourceDir $destDir

# 4  
Old 03-29-2011
Install the following rpm's (These are for AIX 6.1 so if they are not the same for 5.3, then just try to install rsync. It will tell you the dependencies that your missing and just grab them and install them).

gcc
gcc-cplusplus
libgcc
libstdcplusplus
libstdcplusplus-devel
rsync

You can download them from:
IBM AIX Toolbox for Linux Applications - Alphabetical Listing

Then a simple rsync command would be:

Code:
rsync -avz --delete-after /home/* user@system:/home/

There are several other switches to rsync that you can use, so you can check out the help screen by typing
Code:
rsync -h

once you have it installed. But this one should work for a basic rsync. It will also clean up any files on the target system that are not on the source system when it is done syncing. If you dont want that to happen then just leave out the
Code:
--delete-after

If you set up ssh keys between the two systems you can cron it to run at certain times of the day and you will not have to enter a password to make the connection betwen the two systems, rather it will use the keys to authenticate.

To do that just switch user to the user you want to rsync as and:

Code:
ssh-keygen

It will copy your keys in the home directory of the user that you initiate the keygen command as, so something like this /home/user/.ssh/id_rsa.pub.

Take the public key from the source systems and copy it into the destination system under /home/user/.ssh/authorized_keys. If the authorized_keys file does not exist then create it and copy the public key there.

This should get you up and working with rsync. I just put this up off of memory so hopefully i did not miss anything, but this should get you going.
# 5  
Old 04-05-2011
Thanks all for your prompted reply.

There is one thing which confused me.
wether I have already rsync installed or not ?

as oracle user I say:

which rsync
o/p:
/bin/rsync

what is it mean? I have rsync already installed and I can use above suggested commnads or do I need to install some rmp and then proceed further ???


please suggest !

Thanks all again
# 6  
Old 04-05-2011
Quote:
Originally Posted by mcagaurav
as oracle user I say:

which rsync
o/p:
/bin/rsync
You can use the "which"-command as any user, not just as oracle. ;-))

"which" is correct and its output means that there is a command named "rsync" located at "/bin/rsync".

A small side remark: note, that "which" just searches through the contents of your PATH-variable. If it doesn't find a specific binary that doesn't mean it isn't there but that it is not found in any of the directories mentioned in the PATH-variable. This is why using "rpm -qa | grep <yourcommand>" is a somewhat more reliable method of finding out if it is installed or not.

I once used rsync in an AIX 5.1 environment and had troubles with it. (The rsync job would tear down the inetd and every other network daemon with it sometimes, resulting in an "autistic" system that could only be revived by a reboot.) Probably my experiences will not apply to the situation today, but a bit caution would be in order. Not that my problem only happened after some bigger amount of data had been transferred and not every time we started "rsync". We never found out what exactly the problem was and ultimately gave up "rsync" altogether.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Shell Programming and Scripting

Need help on rsync

Hi experts, We need copy 5TB data from one server to another (over a 10Gbps link). We plan to use rsync -av remote:/<path /local on destination server but there're few special requirements like: 1. data copy process should run only from 18:00 Hrs to 07:00 every day until copy is completed. Is... (1 Reply)
Discussion started by: magnus29
1 Replies

3. UNIX for Dummies Questions & Answers

AIX rsync concept

Hi this is ram, I am beginers for AIX. I would like to know about AIX RSYNC concept. Thanks ram (4 Replies)
Discussion started by: thiruram
4 Replies

4. AIX

Nim on AIX 7.1 used to migrate AIX 5.3 to AIX 6.1...is possible?

Using nimadm: nimadm -j nimadmvg -c sap024 -s spot_6100 -l lpp_6100 -d "hdisk1" -Y Initializing the NIM master. Initializing NIM client sap024. 0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOT spot_6100 (6.1.3.4) does not match the NIM master's level (7.1.1.2).... (2 Replies)
Discussion started by: sciacca75
2 Replies

5. Shell Programming and Scripting

rsync

Am I correct in assuming that the following command: rsync -a /a /b does not make any changes on /a if there are files on /b that are newer (2 Replies)
Discussion started by: jgt
2 Replies

6. Shell Programming and Scripting

rsync

hi there I wonder if some-one can help. I am trying to use rsync on my mac to transfer a folder to a remote machine. I have logged into rysnc on my mac no problem and I'm trying to execute this command: rsync -a -e ssh /Users/myname/myfolder/sourcefolder/... (3 Replies)
Discussion started by: volterony
3 Replies

7. Shell Programming and Scripting

using rsync

I'm just trying to use rsync to retreive the file from different servers with script. i want to look for a file, if the file exists, then retreive the file from different servers, and put it in one file. I have the following command. rsync -v -e ssh jerry@openbsd.nixcraft.in:~/webroot.txt /tmp ... (5 Replies)
Discussion started by: s_linux
5 Replies

8. UNIX for Advanced & Expert Users

Rsync

I have to update my files to 2-4 servers and I tar all the files and ftp to every server. I have heard about Rsync, but are there any other ways that are the same as Rsync?> (1 Reply)
Discussion started by: darknite87
1 Replies

9. UNIX for Dummies Questions & Answers

rsync

I want to do rsync only for the difference in the last 30 days. How do I specify the "30 days" on the command line below? >rsync -avz prj# /rsource /destination Thanks for help (6 Replies)
Discussion started by: wz253
6 Replies
Login or Register to Ask a Question