Whamcloud - gitweb
LU-15613 utils: add lfs_migrate --cp option
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 3 Mar 2022 04:51:25 +0000 (21:51 -0700)
committerJohn L. Hammond <jhammond@whamcloud.com>
Tue, 29 Mar 2022 15:21:17 +0000 (15:21 +0000)
commit93f31b88e59cf1aecd90f91fd5ecec2c143dbfd0
tree2734331e34f44e90150e3926aa98985845d1f0ec
parentb1c77ec8dc1314c1538a163be21cbb3ff414a99a
LU-15613 utils: add lfs_migrate --cp option

Since "lfs_migrate" is only copying a single file at a time, there is
no real benefit from using "rsync" as the only copytool.  Add a short
"--cp" option with suitable arguments to complement "--rsync".

Also allow the copy command to be replaced arbitrarily with RSYNC and
RSYNC_OPTS environment variables to be specified by the caller.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I66c664948d5cc5a7baa5a65550abfaa8d73ebbe5
Reviewed-on: https://review.whamcloud.com/46691
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/doc/lfs_migrate.1
lustre/scripts/lfs_migrate