mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
Add Auto-Backup rules to ignore unneeded files (#1747)
* Add backup rules for database and sharedpref only * Include sharedprefs in backup
This commit is contained in:
parent
73c61eacbb
commit
553b614c2b
|
@ -41,6 +41,7 @@
|
|||
<application
|
||||
android:name=".HomeAssistantApplication"
|
||||
android:allowBackup="true"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:banner="@mipmap/ic_banner"
|
||||
android:label="@string/app_name"
|
||||
|
|
5
app/src/main/res/xml/backup_rules.xml
Executable file
5
app/src/main/res/xml/backup_rules.xml
Executable file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<full-backup-content>
|
||||
<include domain="database" path="." />
|
||||
<include domain="sharedpref" path="." />
|
||||
</full-backup-content>
|
Loading…
Reference in a new issue