Whamcloud - gitweb
LU-15613 utils: add lfs_migrate --cp option 27/49727/5
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 3 Mar 2022 04:51:25 +0000 (21:51 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2024 05:52:32 +0000 (05:52 +0000)
commit37b8114c5ff92d7447321c1513515503f442b6bd
tree62b45bc1164714b19ae4e88d6e8cbc1e099493e6
parent3fd57f81fddc604aa94bc7797cc211c7e393b3d0
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-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49727
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng Lei <flei@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs_migrate.1
lustre/scripts/lfs_migrate