Add 'mcbackup' script

This commit is contained in:
samedamci 2020-05-11 11:46:02 +02:00
parent 25d7fdec21
commit cdfa0a9867
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

5
.local/bin/scripts/mcbackup Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Script to backup Minecraft save and compress it via lz4 alghoritm.
tar -cp "$1" | lz4 -9 > "$1_$(date "+%Y-%m-%d_%H-%M").tar.lz4"