diff --git a/backup/backup b/backup/backup
index a3ea4145565c7703c30cae0aca514fba22a5c279..8bfaaa5510503bd6c4a988434c1b5484ce65ec4b 100755
--- a/backup/backup
+++ b/backup/backup
@@ -36,7 +36,7 @@ NR>2 {
         image_url = registry "/" $1 ":" $(i)
         image_file = dest "/" $1 "/" $(i) ".tar"
         printf "Saving %s to %s.\n", image_url, image_file
-        system("[ -f " image_file " ] || rm " image_file)
+        system("[ ! -f " image_file " ] || rm " image_file)
         if (system("skopeo copy docker://" image_url " docker-archive://" image_file) == 0)
             printf "Backup of %s was successful.\n", image_url
         else {