Hi all.
Am doing continuous backup of mailboxes using rsync.
So whenever a new mail arrives it is automatically copied on backup server.
When a new mail arrives it is named as xyz:2, when it is read by the email client an S is appended xyz:2,S
Eventually , 2 copies of the same file exist on the backup server with different names while on the Mailserver only xyz:2,S exists.
e.g
on mail server:
xyz:2,RS
on backup server:
xyz:2,
xyz:2,S
xyz:2,RS
So in 1 directory i can have 3 copies of file xyz & 2 copies of file abc.
Can anyone help how i can remove the oldest files(xyz:2,) and keep only the most recent one on the backup server ?
Thanks:(