diff --git a/download_themes.sh b/download_themes.sh
index 4d06676..dfeb9ae 100644
--- a/download_themes.sh
+++ b/download_themes.sh
@@ -45,6 +45,10 @@ function update_theme() {
     else
         log_info "The $local_theme files have different contents. Updating local file..."
 
+        rm -rf ./backup/
+        mkdir -p ./backup
+        cp "$local_file" ./backup/
+
         # Replace the local file with the remote one
         mv "$remote_temp" "$local_file" || { log_error "Failed to update $local_file"; exit 1; }