Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make local backup a backup agent #130623

Merged
merged 25 commits into from
Nov 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
400f792
Make local backup a backup agent
emontnemery Nov 14, 2024
0ce1fd7
Adjust
emontnemery Nov 14, 2024
f103835
Adjust
emontnemery Nov 14, 2024
a91b4db
Merge remote-tracking branch 'upstream/allthebackupchanges' into loca…
emontnemery Nov 15, 2024
0e128d2
Adjust
emontnemery Nov 15, 2024
8bdc819
Adjust tests
emontnemery Nov 15, 2024
8f6ae45
Adjust
emontnemery Nov 16, 2024
1858092
Adjust
emontnemery Nov 18, 2024
8edf464
Adjust docstring
emontnemery Nov 18, 2024
068e2d4
Adjust
emontnemery Nov 18, 2024
19c8ebb
Protect members of CoreLocalBackupAgent
emontnemery Nov 18, 2024
f9b3cb7
Remove redundant check for file
emontnemery Nov 18, 2024
2c1e58f
Make the backup.create service use the first local agent
emontnemery Nov 18, 2024
b06e8d6
Add BackupAgent.async_get_backup
emontnemery Nov 18, 2024
10d0fec
Fix some TODOs
emontnemery Nov 18, 2024
e788d00
Add support for downloading backup from a remote agent
emontnemery Nov 18, 2024
8a9cdfa
Fix restore
emontnemery Nov 18, 2024
244416b
Fix test
emontnemery Nov 18, 2024
6ab3e5d
Adjust kitchen_sink test
emontnemery Nov 18, 2024
46b085e
Remove unused method BackupManager.async_get_backup_path
emontnemery Nov 18, 2024
9609b55
Merge remote-tracking branch 'upstream/allthebackupchanges' into loca…
emontnemery Nov 18, 2024
7f45aa9
Re-enable kitchen sink test
emontnemery Nov 18, 2024
a251813
Remove BaseBackupManager.async_upload_backup
emontnemery Nov 18, 2024
4edf64c
Support restore from remote agent
emontnemery Nov 18, 2024
5baa39e
Fix review comments
emontnemery Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust
  • Loading branch information
emontnemery committed Nov 18, 2024
commit 068e2d497c8b43f290114d20a07b4fe956957804
2 changes: 1 addition & 1 deletion homeassistant/components/backup/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def async_upload_backup(self, *, slug: str, **kwargs: Any) -> None:
local_agent = self.local_backup_agents[LOCAL_AGENT_ID]
await self._async_upload_backup(
backup=backup,
agent_ids=list(self.backup_agents.keys()),
agent_ids=list(self.backup_agents),
# TODO: This should be the path to the backup file
path=local_agent.get_backup_path(slug),
MartinHjelmare marked this conversation as resolved.
Show resolved Hide resolved
)
Expand Down
Loading