From 52fe96108ba240c8335207bf8aa7a6ac5e5d8fe7 Mon Sep 17 00:00:00 2001 From: home Date: Tue, 14 Nov 2023 05:56:07 +0300 Subject: [PATCH] backup : fix deleting old backups. --- app/bin/home/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bin/home/backup b/app/bin/home/backup index 108eb5d..c0cf4fe 100755 --- a/app/bin/home/backup +++ b/app/bin/home/backup @@ -35,7 +35,7 @@ builtin cd "$path_src" /usr/bin/find $path_media -type d | gzip -1 > media/list/cold.txt.gz || notify 'backup : save media list failed' # backup docker. -rm $path_docker/${dow}_*.tar.gz +rm $path_docker/${dow}_*.tgz /usr/bin/tar --exclude-from=docker/.tarignore -c docker | /usr/bin/gzip -1 > $path_docker/docker.tar.gz && mv $path_docker/docker.tar.gz $path_docker/${dow}_${date}-$(/usr/bin/sha1sum $path_docker/docker.tar.gz | cut -d\ -f1).tar.gz || notify 'backup : docker failed' # copy media.