Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. usr/bin/find /SRC -name "*.zip" -exec usr/bin/rsync -vgoth --delete {} /DEST/ ;
  2.  
  3. $ tree
  4. .
  5. ├── file1.zip
  6. ├── folder1
  7. │   └── file2.zip
  8. └── folder2
  9. └── subfolder
  10. └── file3.zip
  11.  
  12. 3 directories, 3 files
  13.  
  14. $ tree $BACKUP_DESTINATION
  15. 0 directories, 0 files
  16.  
  17. $ find . -iname "*.zip" -exec rsync -vgoth {} ${BACKUP_DESTINATION} ;
  18. [...]
  19.  
  20. $ tree $BACKUP_DESTINATION
  21. .
  22. ├── file1.zip
  23. ├── file2.zip
  24. └── file3.zip
  25.  
  26. 0 directories, 3 files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement