From b71c6efea0b5c18b8788d29dcd8595ea16630f6b Mon Sep 17 00:00:00 2001 From: Nathan Fretz Date: Mon, 8 Jan 2024 04:23:37 -0800 Subject: [PATCH] App Submission: Back That Mac Up (#929) --- .../data/opt-timemachine/.gitkeep | 0 back-that-mac-up/data/run-samba/.gitkeep | 0 .../data/var-cache-samba/.gitkeep | 0 back-that-mac-up/data/var-lib-samba/.gitkeep | 0 back-that-mac-up/docker-compose.yml | 53 +++++++++++++++++++ back-that-mac-up/umbrel-app.yml | 34 ++++++++++++ 6 files changed, 87 insertions(+) create mode 100644 back-that-mac-up/data/opt-timemachine/.gitkeep create mode 100644 back-that-mac-up/data/run-samba/.gitkeep create mode 100644 back-that-mac-up/data/var-cache-samba/.gitkeep create mode 100644 back-that-mac-up/data/var-lib-samba/.gitkeep create mode 100644 back-that-mac-up/docker-compose.yml create mode 100644 back-that-mac-up/umbrel-app.yml diff --git a/back-that-mac-up/data/opt-timemachine/.gitkeep b/back-that-mac-up/data/opt-timemachine/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/back-that-mac-up/data/run-samba/.gitkeep b/back-that-mac-up/data/run-samba/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/back-that-mac-up/data/var-cache-samba/.gitkeep b/back-that-mac-up/data/var-cache-samba/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/back-that-mac-up/data/var-lib-samba/.gitkeep b/back-that-mac-up/data/var-lib-samba/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/back-that-mac-up/docker-compose.yml b/back-that-mac-up/docker-compose.yml new file mode 100644 index 0000000..1f839da --- /dev/null +++ b/back-that-mac-up/docker-compose.yml @@ -0,0 +1,53 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: back-that-mac-up_server_1 + APP_PORT: 80 + + server: + image: getumbrel/umbrel-back-that-mac-up:1.0.0@sha256:f26f349eec8b3e9970a5f012ce30567d577b9459705a86f3592273a15f2ed0af + restart: on-failure + environment: + TIME_MACHINE_DIR: "/timemachine" + volumes: + # this is the entire back-that-mac-up data dir (could consider only mounting opt-timemachine subdir instead) + - ${APP_DATA_DIR}/data:/timemachine + + timemachine: + image: mbentley/timemachine:smb-20231122@sha256:861560184a5c9f3b4f2a8bef4549ef4168d80c57a9de81b16bc5e6eead24ff3f + hostname: umbrel + environment: + ADVERTISED_HOSTNAME: "umbrel" + CUSTOM_SMB_CONF: "false" + CUSTOM_USER: "false" + DEBUG_LEVEL: "1" + HIDE_SHARES: "no" + EXTERNAL_CONF: "" + MIMIC_MODEL: "TimeCapsule8,119" + TM_USERNAME: "timemachine" + TM_GROUPNAME: "timemachine" + TM_UID: "1000" + TM_GID: "1000" + PASSWORD: "timemachine" + SET_PERMISSIONS: "false" + SHARE_NAME: "Umbrel - Time Machine" + SMB_INHERIT_PERMISSIONS: "no" + SMB_NFS_ACES: "no" + SMB_METADATA: "stream" + SMB_PORT: "445" + SMB_VFS_OBJECTS: "acl_xattr fruit streams_xattr" + VOLUME_SIZE_LIMIT: "0" + WORKGROUP: "WORKGROUP" + restart: unless-stopped + ports: + - "137:137/udp" + - "138:138/udp" + - "139:139" + - "445:445" + volumes: + - ${APP_DATA_DIR}/data/opt-timemachine:/opt/timemachine + - ${APP_DATA_DIR}/data/var-lib-samba:/var/lib/samba + - ${APP_DATA_DIR}/data/var-cache-samba:/var/cache/samba + - ${APP_DATA_DIR}/data/run-samba:/run/samba \ No newline at end of file diff --git a/back-that-mac-up/umbrel-app.yml b/back-that-mac-up/umbrel-app.yml new file mode 100644 index 0000000..394eec5 --- /dev/null +++ b/back-that-mac-up/umbrel-app.yml @@ -0,0 +1,34 @@ +manifestVersion: 1 +id: back-that-mac-up +category: files +name: Back That Mac Up +version: "1.0.0" +tagline: Backup your Mac to your Umbrel using Time Machine +description: > + Introducing Back That Mac Up — an official app by Umbrel. + + + Effortlessly back up your Mac to your Umbrel using Time Machine. Simply follow the instructions in the app to set up your Umbrel as a Time Machine backup destination and you're good to go! + + + Make sure to follow the instructions in the app to appropriately allocate the backup size. Time Machine backs up your Mac by keeping hourly backups for the past 24 hours, daily backups for the past month and weekly backups for all previous months. + Over time, it will likely use all the allotted space on your Umbrel, automatically deleting the oldest backups to free up space as needed. + + + For seamless backups even when your Mac isn't connected to the same network as your Umbrel, simply install Tailscale on your Umbrel and your Mac, and use smb://umbrel as the server address. +releaseNotes: "" +developer: Umbrel +website: https://umbrel.com +dependencies: [] +repo: https://github.com/getumbrel/umbrel-back-that-mac-up +support: https://community.getumbrel.com +port: 3012 +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +path: "" +deterministicPassword: false +torOnly: false +submitter: Umbrel +submission: https://github.com/getumbrel/umbrel-apps/pull/929