fix: use file name for backups to Google Drive (#19504)
Currently, backups to Google Drive are uploaded with the absolute path as the filenames. This fix changes that. [skip ci]
This commit is contained in:
parent
6bae5a2974
commit
4654db6e26
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ def upload_system_backup_to_google_drive():
|
|||
if not fileurl:
|
||||
continue
|
||||
|
||||
file_metadata = {"name": fileurl, "parents": [account.backup_folder_id]}
|
||||
file_metadata = {"name": os.path.basename(fileurl), "parents": [account.backup_folder_id]}
|
||||
|
||||
try:
|
||||
media = MediaFileUpload(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue