1. 24x7serverman

    24x7serverman Well-Known Member

    Jun 24, 2016
    80
    Command for move files from old server to new server, which does not support rsync --remove-source-files


    Code:
    for file in /lx/test/*; do scp -rp "$file" [email protected]:/lx/scp && rm -rf "$file" ; done
    
    May be helpful for someone
     

Share This Page