test
parent
6ec8dd185e
commit
f99bd0044f
|
@ -23,6 +23,10 @@ def create_dirs_and_download(backup_url: str, date: datetime.datetime, base_path
|
|||
if not os.path.exists(f"{base_path}/{year}/{month}"):
|
||||
os.makedirs(f"{base_path}/{year}/{month}")
|
||||
|
||||
download_backup(backup_url=backup_url, backup_path=f"{base_path}/{year}/{month}/{year}_{month}_{day}.tar.gz")
|
||||
save_path = f"{base_path}/{year}/{month}/{year}_{month}_{day}.tar.gz"
|
||||
|
||||
print(save_path)
|
||||
|
||||
download_backup(backup_url=backup_url, backup_path=save_path)
|
||||
|
||||
return f"{year}/{month}/{year}_{month}_{day}.tar.gz"
|
Loading…
Reference in New Issue