close

[sean@station62 tmp]$ cd report
[sean@station62 report]$ cp /etc/passwd 1.txt
[sean@station62 report]$ cp /etc/passwd 2.txt
[sean@station62 report]$ cp /etc/passwd 3.txt
[sean@station62 report]$ ls
1.txt  2.txt  3.txt
[sean@station62 report]$ cd ..
[sean@station62 tmp]$ ls
report
[sean@station62 tmp]$ rsync -av report/ report2
sending incremental file list
created directory report2
./
1.txt
2.txt
3.txt

sent 6058 bytes  received 72 bytes  12260.00 bytes/sec
total size is 5841  speedup is 0.95

---

[sean@station62 tmp]$ rsync -av -e --delete -e ssh lccnet@192.168.123.60:report .
lccnet@192.168.123.60's password:
receiving incremental file list
report/
report/DIR_COLORS
report/DIR_COLORS.256color
report/DIR_COLORS.lightbgcolor
report/adjtime
report/aliases
report/aliases.db
report/anacrontab
report/anthy-conf
report/asound.conf
report/at.deny
report/auto.master
...

sent 946 bytes  received 86104 bytes  19344.44 bytes/sec
total size is 83158  speedup is 0.96
[sean@station62 tmp]$ ls
report

--

主機之間網路檔案傳輸工具

程式項目

scp, sftp, lftp, rsync

使用方式

scp peter@192.168.1.1:/etc/passwd .

scp /etc/passwd peter@192.168.1.1:/tmp

sftp peter@192.168.1.1

lftp sftp://peter@192.168.1.1

rsync -av -e ssh peter@192.168.1.1:/etc/passwd .

rsync -av -e ssh /etc/passwd peter@192.168.1.1:/tmp

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sean 的頭像
    sean

    My Source Code

    sean 發表在 痞客邦 留言(0) 人氣()