https://github.com/lednerb/backup-my-folder
Simple script to .tar.gz a folder and display the progress on the terminal
https://github.com/lednerb/backup-my-folder
Last synced: about 2 months ago
JSON representation
Simple script to .tar.gz a folder and display the progress on the terminal
- Host: GitHub
- URL: https://github.com/lednerb/backup-my-folder
- Owner: Lednerb
- License: mit
- Created: 2016-09-12T19:04:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T19:14:17.000Z (almost 10 years ago)
- Last Synced: 2025-12-31T00:32:59.844Z (6 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Backup-my-folder
This little script will backup a given folder to a `.tar.gz` file and display the progress on the terminal.
## Usage
Simple run the following command to backup a given folder:
```bash
./backup.sh /path/to/folder
```
This will generate a file called `backup-YYYY-mm-dd.tar.gz` in the current folder.
## Installation
Just clone this repo or download the `backup.sh` script, add the execute permission (`chmod +x backup.sh`), check if you've installed `pv` (`sudo apt-get install pv` on Ubuntu/Debian) and you're good to go.
### optional system-wide availability
If you want to just run `backup /my/folder` copy the backup script to the standard folder:
```
sudo cp ./backup.sh /usr/local/bin/backup
```
## Acknowledgement
A big thanks goes to the following people:
- [Philip Fourie](http://stackoverflow.com/a/1401495)
- [Andrew McGregor](http://stackoverflow.com/a/2013589)
- and the guys at [ubuntuusers.de](https://ubuntuusers.de) for their great [Bash-Skripting-Guide für Anfänger](https://wiki.ubuntuusers.de/Shell/Bash-Skripting-Guide_f%C3%BCr_Anf%C3%A4nger/)