main
Jan Beníček 2024-06-20 16:29:32 +02:00
parent 6ec8dd185e
commit f99bd0044f
1 changed files with 5 additions and 1 deletions

View File

@ -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"