Add 'mcbackup' script

This commit is contained in:
Wiktor Zykubek 2020-05-11 11:46:02 +02:00
parent 2ef7cd05f4
commit 8d77ab1198

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"