Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $UID -eq 0 ]]; then
- SRC=$(zenity --title "Source Directory" --text "Directory: " --entry )
- DEST=$(zenity --title "Destination Directory" --text "Destination: " --entry )
- (cd "$SRC"; tar cf - .) | (cd "$DEST"; tar xpf -)
- else
- echo -e "Sorry Bro...........\nROOT OnLY!"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement