From 87b8f36f86a2ccf14d70f13e8fa0a424e488854a Mon Sep 17 00:00:00 2001 From: Jan Danielzick Date: Sun, 10 Oct 2021 20:29:31 +0200 Subject: [PATCH] Update 'backup' --- backup | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backup b/backup index 628b267..a6f85fc 100644 --- a/backup +++ b/backup @@ -3,14 +3,15 @@ # config instances_dir=$HOME/instances backups_dir=$HOME/backups -tmpdir=/tmp/minecraft-backup +tmpdir=$backups_dir/tmp backup_timestamp=`date +%Y-%m-%d_%H.%M.%S` -echo "WARNING: This script is deprecated and will be reworked to support incremental backup soon." +echo "WARNING: This script is deprecated and will be reworked to support incremental backups soon." # desired features: # - incremental backups # - converter from old backups to incremental backups # - override options for config instead of hardcoded values +# - display total time it took to make the backup # make sure it is there mkdir -p -v "$tmpdir" @@ -20,4 +21,6 @@ tar cvf "$tmpdir/$backup_timestamp.tar" "$instances_dir" echo "Compressing backup..." xz -z --best -T0 "$tmpdir/$backup_timestamp.tar" # move to destination -mv -v "$tmpdir/$backup_timestamp.tar.xz" "$backups_dir" \ No newline at end of file +mv -v "$tmpdir/$backup_timestamp.tar.xz" "$backups_dir" + +echo "WARNING: This script is deprecated and will be reworked to support incremental backups soon." \ No newline at end of file