diff --git a/src/tools/move-drive-files.ts b/src/tools/move-drive-files.ts
index 81a38c94d3..0c201ff8d5 100644
--- a/src/tools/move-drive-files.ts
+++ b/src/tools/move-drive-files.ts
@@ -10,7 +10,8 @@ DriveFile.find({
 		withoutChunks: { $exists: false }
 	}, {
 		withoutChunks: false
-	}]
+	}],
+	'metadata.deletedAt': { $exists: false }
 }, {
 	fields: {
 		_id: true