Rsync

From Wiki
Jump to: navigation, search

RSYNC

To make a complete copy from one folder to the other:

rsync --include=".*" -avv origin/ destination/


To check if the content is the same:

gerard@gerard-laptop:~$ diff -ru Desktop/ backup-Desktop/
diff -ru Desktop/.test backup-Desktop/.test
--- Desktop/.test	2010-03-01 11:09:38.674690154 +0100
+++ backup-Desktop/.test	2010-03-01 11:24:47.378688571 +0100
@@ -1 +1 @@
-asdfaadfasdf
+siiiiiii
Personal tools
Namespaces
Variants
Actions
Navigation
Content
Toolbox