변군이글루

[명령어] rsync 명령어 본문

* 리눅스

[명령어] rsync 명령어

변군 변군이글루 2021. 5. 13. 09:35
728x90
반응형

rsync 전송 후 원본 파일(source file) 삭제

OPTIONS SUMMARY

-e, --rsh=COMMAND           specify the remote shell to use
    --rsync-path=PROGRAM    specify the rsync to run on remote machine
    --existing              skip creating new files on receiver
    --ignore-existing       skip updating files that exist on receiver
    --remove-source-files   sender removes synchronized files (non-dir)
    --del                   an alias for --delete-during
    --delete                delete extraneous files from dest dirs
    --delete-before         receiver deletes before xfer, not during
    --delete-during         receiver deletes during the transfer
    --delete-delay          find deletions during, delete after
    --delete-after          receiver deletes after transfer, not during
    --delete-excluded       also delete excluded files from dest dirs
    --ignore-missing-args   ignore missing source args without error
    --delete-missing-args   delete missing source args from destination
    --ignore-errors         delete even if there are I/O errors
    --force                 force deletion of dirs even if not empty
    --max-delete=NUM        don't delete more than NUM files
    --max-size=SIZE         don't transfer any file larger than SIZE
    --min-size=SIZE         don't transfer any file smaller than SIZE
    --partial               keep partially transferred files
    --partial-dir=DIR       put a partially transferred file into DIR
    --delay-updates         put all updated files into place at end

명령어

rsync --remove-source-files -av test.txt rsync-user@targethost2:/tmp/

Linux man page : rsync

 

rsync(1) - Linux man page

rsync(1) - Linux man page Name rsync -- a fast, versatile, remote (and local) file-copying tool Synopsis Local: rsync [OPTION...] SRC... [DEST] Access via remote shell: Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@

linux.die.net

 

728x90
반응형
0 Comments
댓글쓰기 폼