Hi since I have searched stack overflow and did not get info about this, I need to ask again with specific requirements. I have an old storage with approx. 4TB of data and I would like to sync it with new storage based on ZFS (TrueNAS core). This data on old storage gets changed often, new gets created and some of them gets deleted. since I cannot use ZFS send/receive from the old storage which would be a best option as I would do a block by block copy plus snapshots, I need to see a possibilities of an rsync.
Now rsync has several flags and most of examples that I found out are using
rsync -avr /source /destination
This would be a good thing to do if I would make on time archive and perhaps archive those new files which are created, but since old data is sometimes deleted and some current files which are located are being updated by programs (meaning content and timestamp is changed), I need to see an option which would include archive of newly created files, delete old files on new ZFS storage which is also deleted on the old "source" storage and also update of the modified files from source to destination storage..
Reading the manual rsync command should look like this:
rsync -avu --delete /source /destination --progress
but since this is live data, I need to be 100% certain, and I cannot simply test and "try" this out...
Is there anyone who is really good when it comes to rsync to check and perhaps give me an advice how this command should look like, or perhaps make suggestion...
P.S. This rsync should be se daily in a cronjob so, with all append, delete and update options included...
Thank you in advance.