From 73beac95175cbd4074c5ecba51f469f3bc7d538f Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 15 Oct 2023 22:15:29 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 9e917c5c..8028aec3 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -88,7 +88,7 @@ class GdriveSync(plugins.Plugin): zip_ref.write(file_path, arcname=arcname) # Upload the zip archive to Google Drive - self.upload_to_gdrive(zip_file_path, self.options['backup_folder']) + self.upload_to_gdrive(zip_file_path, self.get_folder_id_by_name(self.drive, self.options['backup_folder'])) self.backup = True # Specify the local backup path @@ -190,7 +190,7 @@ class GdriveSync(plugins.Plugin): zip_ref.write(file_path, arcname=arcname) # Upload the zip archive to Google Drive - self.upload_to_gdrive(zip_file_path, self.options['backup_folder']) + self.upload_to_gdrive(zip_file_path, self.get_folder_id_by_name(self.drive, self.options['backup_folder'])) # Cleanup the local zip file os.remove(zip_file_path)