https://github.com/eshaan7/automate-compression
Create compressed .tar.gz of a directory recursively
https://github.com/eshaan7/automate-compression
python python27 shell shell-script shellscript
Last synced: 2 months ago
JSON representation
Create compressed .tar.gz of a directory recursively
- Host: GitHub
- URL: https://github.com/eshaan7/automate-compression
- Owner: eshaan7
- Created: 2018-11-09T21:27:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T00:10:11.000Z (over 6 years ago)
- Last Synced: 2025-02-09T03:25:59.161Z (4 months ago)
- Topics: python, python27, shell, shell-script, shellscript
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automate-compression
## What the script does:
1. goes into a directory(user inputs the directory path)
2. Archive all files recursively to .tar and pipe them through gzip -9 to get
best compression creating <>.tar.gz
3. Appends all of these individual <>.tar.gz files into another tarball.
4. Finally .tar #{compress ffs please} > .tar.gz
## Why python as well as shell script ?
Wrote it in python first because python makes everything easier, but the code got messy and there were alot of system calls so it hit me that shell script will be a better option and it was..Win-win or lose-lose, that you decide.## Notes
The script works best with text files. Even so much that a friend of mine converted 40 gigs to 100mb.
P.S. This is actually my first repo with python and bash code. Enjoy!