Hi
This is for the techies out there. So flex your techie muscle on this...
I have a redundant mail server setup and I've got a crontab setup to rsync copy my /etc/localdomains on the primary to /etc/secondarymx on the fallback mail server.
Like this from the backup mailserver crontab
0 1 * * * rsync -e ssh -avz [email protected]:/etc/localdomains /etc/secondarymx 2>&1 > /var/log/nightly_email_backup.log
However I'm noticing that the rsync takes a direct copy of the file from the primary server, but I thought it would just append by default.
I have domains that I've manually put into the /etc/secondarymx on the backup server that keep dissapearing after the crontab has run. So the rsync is removing them as well as adding in the new domains.
I just want the rsync to append the new domains that end up in the /etc/localdomains on the primary at the end of each day, whatever is in /etc/secondarymx can stay there even if the domains are removed from the primary.
Does anyone know how I can do this with rsync or scp or whatever.?
Thanks
Aaron
This is for the techies out there. So flex your techie muscle on this...
I have a redundant mail server setup and I've got a crontab setup to rsync copy my /etc/localdomains on the primary to /etc/secondarymx on the fallback mail server.
Like this from the backup mailserver crontab
0 1 * * * rsync -e ssh -avz [email protected]:/etc/localdomains /etc/secondarymx 2>&1 > /var/log/nightly_email_backup.log
However I'm noticing that the rsync takes a direct copy of the file from the primary server, but I thought it would just append by default.
I have domains that I've manually put into the /etc/secondarymx on the backup server that keep dissapearing after the crontab has run. So the rsync is removing them as well as adding in the new domains.
I just want the rsync to append the new domains that end up in the /etc/localdomains on the primary at the end of each day, whatever is in /etc/secondarymx can stay there even if the domains are removed from the primary.
Does anyone know how I can do this with rsync or scp or whatever.?
Thanks
Aaron