From d3aeb8d3cd987061a432d1ef298f1fff219ba395 Mon Sep 17 00:00:00 2001 From: joeuhren Date: Sat, 20 Mar 2021 14:49:15 -0600 Subject: [PATCH] Improved restore backup script -Greatly increases speed of database restore by removing the 'remove' cmds which are not only unnecessary but can be extremely time-consuming to run on large database collections while drop statements run very fast and free up everything required --- scripts/restore_backup.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/restore_backup.sh b/scripts/restore_backup.sh index 0ae1708..be007dc 100755 --- a/scripts/restore_backup.sh +++ b/scripts/restore_backup.sh @@ -32,23 +32,14 @@ if [ -n "${1}" ]; then # Erase entire database sudo mongo <