SHARE
TWEET

Untitled

a guest Aug 18th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /tmp $ mkdir src tgt
  2. /tmp $ cd src/
  3. /tmp/src $ touch .test{1,2,3}
  4. /tmp/src $ ls -la
  5. total 0
  6. drwxr-xr-x   5 user  wheel  170 18 Aug 15:02 .
  7. drwxrwxrwt  11 root       wheel  374 18 Aug 15:02 ..
  8. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test1
  9. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test2
  10. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test3
  11.      
  12. /tmp/src $ cd ..
  13. /tmp $ rsync -avh --delete --progress src/.??* tgt
  14. building file list ...
  15. 3 files to consider
  16. .test1
  17.            0 100%    0.00kB/s    0:00:00 (xfer#1, to-check=2/3)
  18. .test2
  19.            0 100%    0.00kB/s    0:00:00 (xfer#2, to-check=1/3)
  20. .test3
  21.            0 100%    0.00kB/s    0:00:00 (xfer#3, to-check=0/3)
  22.  
  23. sent 209 bytes  received 86 bytes  590.00 bytes/sec
  24. total size is 0  speedup is 0.00
  25. /tmp $ ls -la tgt/
  26. total 0
  27. drwxr-xr-x   5 user  wheel  170 18 Aug 15:03 .
  28. drwxrwxrwt  11 root       wheel  374 18 Aug 15:02 ..
  29. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test1
  30. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test2
  31. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test3
  32.      
  33. /tmp $ rm -rf src/.test1
  34. /tmp $ ls -la src/
  35. total 0
  36. drwxr-xr-x   4 user  wheel  136 18 Aug 15:03 .
  37. drwxrwxrwt  11 root       wheel  374 18 Aug 15:02 ..
  38. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test2
  39. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test3
  40. /tmp $ rsync -avh --delete --progress src/.??* tgt
  41. building file list ...
  42. 2 files to consider
  43.  
  44. sent 75 bytes  received 20 bytes  190.00 bytes/sec
  45. total size is 0  speedup is 0.00
  46. /tmp $ ls -la tgt/
  47. total 0
  48. drwxr-xr-x   5 user  wheel  170 18 Aug 15:03 .
  49. drwxrwxrwt  11 root       wheel  374 18 Aug 15:02 ..
  50. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test1
  51. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test2
  52. -rw-r--r--   1 user  wheel    0 18 Aug 15:02 .test3
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top