|
|
|
@ -72,4 +72,7 @@ def get_next_number(backup_path: Path, hostname): |
|
|
|
def get_new_backup_filepath(backup_path: Path, time_format, hostname): |
|
|
|
next_number = get_next_number(backup_path, hostname) |
|
|
|
dt = datetime.datetime.today() |
|
|
|
return backup_path / f"{next_number}__{hostname}__{dt.strftime(time_format)}.tar.gz" |
|
|
|
return ( |
|
|
|
backup_path |
|
|
|
/ f"{hostname}__{next_number:03d}__{dt.strftime(time_format)}.tar.gz" |
|
|
|
) |