From 546096cecfe33e9cfc8be592611a7a837f9a4bf4 Mon Sep 17 00:00:00 2001 From: Shane Kerr Date: Tue, 7 Apr 2020 09:39:44 +0200 Subject: [PATCH] Create the backup tarball explicitly before invoking tar When grocy is installed on a btrfs file system, the tar command fails if the tarball is not created first. --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index f0d90aea..b36ae2f0 100755 --- a/update.sh +++ b/update.sh @@ -12,6 +12,7 @@ pushd `dirname $0` > /dev/null backupBundleFileName="backup-`date +%d-%m-%Y-%H-%M-%S`.tgz" echo Making a backup of the current installation in ./data/backups/$backupBundleFileName mkdir -p ./data/backups > /dev/null +touch ./data/backups/$backupBundleFileName tar -zcvf ./data/backups/$backupBundleFileName --exclude ./data/backups . > /dev/null find ./data/backups/*.tgz -mtime +60 -type f -delete