Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. /bin/bash ss1 /home/user arch /home/user/folder
  2.  
  3. tar -cvf --exclude=.* $1/$2 $3
  4.  
  5. find "$3" -type f ! -empty ! -name '.*' | tar cvf "$1/$2" -T -
  6.  
  7. find "$3" ( -type d -empty ) -o ( -type f ! -empty ! -name '.*' ) |
  8. tar cvf "$1/$2" -T -
  9.  
  10. find "$3" ( ( -type d -empty ) -o ( -type f ! -empty ! -name '.*' ) ) -print0 |
  11. tar cvf "$1/$2" --null -T -
  12.  
  13. find test/ -not -iname ".*" -not -empty -exec tar --no-recursion -rvf file.tar {} ;
Add Comment
Please, Sign In to add comment