Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # ImPerial TeK Solutions (ITS)
- # Copyright (c) 2018 v1ral #<ImPerialTeKSolutions@outlook.com>
- #########################################################################################################################
- # This script is very fast terminal way of backing up and moving large files and directories #
- #########################################################################################################################
- #########
- # START #
- #########
- cd "$(yad --file-selection --directory)"
- (tar cf - $(pwd) \
- | pv -n -s $(du -sb . | awk '{print $1}') \
- | gzip -9 > `whoami`.tgz) 2>&1 \
- | yad --width 300 --height 100 --title "Progress .tgz Current Directory" --progress 'Progress' 7 70 && echo Processing...
- sleep 2
- echo
- echo
- NEW_NAME="$(yad --title "New File Name: do not include .tgz" --text "New NAME" --entry)"
- mv "`whoami`.tgz" $NEW_NAME.tgz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement