Hi,
I want to take my computer1:/home/user1 (client) and sync it with computer2:/home/user1 (server). The users have the same UID. The directories are basically the same because I have been doing cp -Rpv by mounting it over NFS.
Here is what I would like to do.
I would like rsync to update the newer files and directories and copy them to computer2. I would like to do it over ssh because I am not going to be able to NFS to the box for a bit. So I am going to set up ssh. I would like to make it a cron job in the end.
sshd is already on computer2.
So here is what I understand has to be done.
1. Install the port for rsync on computer1 and computer2.
2. computer2 (server)
Setup rsync dameon to run on boot
And start rsync
3. computer1 (client)
This is what I have so far. I am hoping someone can take a look and tell me if I have made mistakes already.
Sincerely,
Brendhan
I want to take my computer1:/home/user1 (client) and sync it with computer2:/home/user1 (server). The users have the same UID. The directories are basically the same because I have been doing cp -Rpv by mounting it over NFS.
Here is what I would like to do.
I would like rsync to update the newer files and directories and copy them to computer2. I would like to do it over ssh because I am not going to be able to NFS to the box for a bit. So I am going to set up ssh. I would like to make it a cron job in the end.
sshd is already on computer2.
So here is what I understand has to be done.
1. Install the port for rsync on computer1 and computer2.
2. computer2 (server)
Code:
ee /usr/local/etc/rsyncd.conf
Code:
uid = nobody
gid = nobody
use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid
Setup rsync dameon to run on boot
Code:
# echo "rsyncd_enable=YES" >> /etc/rc.conf
And start rsync
Code:
# /usr/local/etc/rc.d/rsyncd start
3. computer1 (client)
Code:
rsync -av home/user1/ user1@computer2:~home/user1 <-- I think
This is what I have so far. I am hoping someone can take a look and tell me if I have made mistakes already.
Sincerely,
Brendhan