diff --git a/source/fab/steps/grab/__init__.py b/source/fab/steps/grab/__init__.py index eed72413..ed4bcf91 100644 --- a/source/fab/steps/grab/__init__.py +++ b/source/fab/steps/grab/__init__.py @@ -24,5 +24,5 @@ def call_rsync(src: Union[str, Path], dst: Union[str, Path]): if not src.endswith('/'): src += '/' - command = ['rsync', '--times', '--stats', '-ru', src, str(dst)] + command = ['rsync', '--times', '--links', '--stats', '-ru', src, str(dst)] return run_command(command) diff --git a/tests/unit_tests/steps/test_grab.py b/tests/unit_tests/steps/test_grab.py index 57878b22..cb4292db 100644 --- a/tests/unit_tests/steps/test_grab.py +++ b/tests/unit_tests/steps/test_grab.py @@ -33,7 +33,8 @@ def _common(self, grab_src, expect_grab_src): grab_folder(mock_config, src=grab_src, dst_label=dst) expect_dst = mock_config.source_root / dst - mock_run.assert_called_once_with(['rsync', '--times', '--stats', '-ru', expect_grab_src, str(expect_dst)]) + mock_run.assert_called_once_with(['rsync', '--times', '--links', '--stats', + '-ru', expect_grab_src, str(expect_dst)]) class TestGrabFcm(object):