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.