Skip to content

feat: Set up service to back up to Android phone using adb

Victor Engmark requested to merge android-backup into master

Group = config.users.groups.adbusers.name and RestrictAddressFamilies = "AF_INET" are necessary to communicate with the ADB daemon.

User = config.users.users.default.name is necessary for access to their home directory. ProtectHome = "read-only" plus ProtectSystem = true is probably safer than ProtectHome = false and RootDirectory = config.users.users.default.home - the former lets the script mess up the root filesystem in very limited ways, while the latter lets the script mess up the home directory.

adb -s 64d9334c is used to make sure I don't accidentally push files to the wrong device.

Merge request reports