Transfer files only once using rsync
The purpose is to allow for moving/deleting files at the destination, without worrying about files being copied over additional times. By default, rsync will retransfer these moved/deleted files.
To run:
./transfer_once.sh <source_directory> <destination_directory>
You can get more help with ./transfer_once.sh -h
To run unit tests, run:
bats ./tests.sh