From cc012c734885fd8432d58f1501217f72b976b53a Mon Sep 17 00:00:00 2001 From: Shane Kerr Date: Tue, 7 Apr 2020 11:43:54 +0200 Subject: [PATCH] Create the backup tarball explicitly before invoking tar (#703) 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