rsync mirroring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello guys,

we have a production server named prod-server
we have a mirror server named storage-server .


I want to mirror a downloadsite on production server to a mirror
server , but i want to keep all files from production server on mirror
server .

More explicitly.

If i will have a file named "myproduct.exe" on production server ,
which is allready mirrored on mirror server , and i will delete it on
production server,  i want to have an original file renamed to
myproduct.exe_DATE_OF_DELETION and then new myproduct.exe normally
mirrored as before.
Basically - I want to backup all changes

I am syncing using

rsync -avz .........

Should i add --backup --suffix = $(date) and thats it?

Thanks in advance!

David
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux