請教rsync如何只備份某目錄下「檔案」,不備份子目錄嗎? - Linux

By Skylar Davis
at 2014-04-29T01:23
at 2014-04-29T01:23
Table of Contents
請教rsync如何只備份某目錄下「檔案」,不備份子目錄嗎?
ex:
/path1/ABC/file1
/path1/ABC/file2
/path1/ABC/file3
/path1/ABC/.hide_file_name4
/path1/ABC/folder5
/path1/ABC/folder6
想 rsync copy 完整備份 file1/2/3/.hide_file_name4 到同一個檔案系統中的
/path2/CDE/file1
/path2/CDE/file2
/path2/CDE/file3
/path2/CDE/.hide_file_name4
但是不備份 folder5/6
請問指令要怎麼下呢?或是有除了 rsync 外,可以在 background 跑的方法?
cp -p * 好像可以不 copy folder , 可是會一直要等輸入 yes 確認不要 copy folder...XD
--
Tags:
Linux
All Comments

By Callum
at 2014-05-01T01:48
at 2014-05-01T01:48

By Rae
at 2014-05-02T06:13
at 2014-05-02T06:13

By Elizabeth
at 2014-05-05T14:28
at 2014-05-05T14:28
Related Posts
HackingThursday 固定聚會 (2014-05-01)

By Iris
at 2014-04-28T12:05
at 2014-04-28T12:05
yum 無法使用

By Ina
at 2014-04-27T22:13
at 2014-04-27T22:13
KDE檔案搜尋

By Isla
at 2014-04-27T15:24
at 2014-04-27T15:24
14.04 ubuntu fcitx按雙引號結果出現分號

By Una
at 2014-04-27T11:20
at 2014-04-27T11:20
聲音輸出極小(ubuntu 14.04)

By Audriana
at 2014-04-26T09:09
at 2014-04-26T09:09