From The Blog

How to test RSYNC before already syncing

21 October 2016, in linux

Wrong execution of rsync command can result a mess that you may cost you some precious time to fix later, so you can test the rsync command before already executing it using the (-n) parameter or (--dry-run):

rsync -anv path/to/file/with/trailing/slash/  path/to/file/without/trailing/slash

Then you can execute it by removing the dry run parameter:

rsync -av path/to/file/with/trailing/slash/  path/to/file/without/trailing/slash



Post a Comment