Create complex ZIP file in a minute. With this tool you can create a ZIP file with custom structure, useful to backup your data instead of manually picking stuff one by one, or good for distrubute your software avoiding to leave your private data into ZIP file.
Quick installation
- Download dist.sh file into your workstation
- Move to
/usr/local/bin/dist.sh
or wherever you prefer - Set executable permission with
chmod +x /usr/local/bin/dist.sh
.
Create in your workstation a file called .distfile
like this
## File: .distfile
@mybackup.zip
+.ssh/*
+.config/*
!*.secret
Run the following command
dist.sh
With this simple instructions you create a ZIP file with all .ssh/
and .config/
directories but without all files *.secret
.
The .distfile
process instruction based on first char of line, all control char are listed here:
@
- Create ZIP file, you can create multiple ZIP file at same time>
- Change root directory into ZIP file+
- Add directory or file to ZIP file!
- Exclude specific directory or file from ZIP file&
- Execute a shell command#
- Comment line
Run without install
$ curl -sL git.io/dist.sh | bash -
Use into Makefile
dist:
curl -sL git.io/dist.sh | bash -
BPKG
bpkg install -g javanile/dist.sh
BPKG/CI
curl -sL git.io/bpkg-install | bash -s javanile/dist.sh
Binst.tk
curl binst.tk | bash -s javanile/dist.sh
curl -i "https://git.io" \
-d "url=https://raw.githubusercontent.com/javanile/dist.sh/master/dist.sh" \
-d "code=dist.sh"
Thank you for considering contributing to this project! The contribution guide can be found in the CONTRIBUTING.md.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Francesco Bianco via [email protected]. All security vulnerabilities will be promptly addressed.
This project is open-sourced software licensed under the MIT license.