Time Machine (mbentley)

Deploy a fully compatible macOS Time Machine backup server using Samba. Configure multiple users, set volume limits, and enable automatic network discovery.

Deploying a reliable backup solution for macOS devices is simple with this containerized Samba server. Designed specifically to mimic an Apple Time Capsule, it provides a seamless, network-attached storage experience for Apple's native backup utility. By leveraging the modern SMB protocol, it ensures stable and fast data transfers while remaining fully compatible with modern macOS environments.

Key benefits and features include:

  • Multi-architecture support allowing deployment on both amd64 and arm64 systems, including Raspberry Pi.
  • Automatic network discovery via Avahi and mDNS, ensuring the backup drive appears natively in the macOS Finder.
  • Granular access controls with the ability to configure custom usernames, passwords, and specific UID/GID mappings.
  • Multi-user configurations enabling separate, isolated backup shares for different users on the same network.
  • Storage quotas to enforce volume size limits and prevent backups from consuming all disk space.

Directory Structure

time-machine-mbentley
timemachine
data
.env
docker-compose.yml

docker-compose.yml

services:
  timemachine:
    image: mbentley/timemachine:smb
    container_name: timemachine
    restart: unless-stopped
    network_mode: host
    environment:
      - SMB_NAME=TimeMachine
      - SMB_USERNAME=${SMB_USERNAME}
      - SMB_PASSWORD=${SMB_PASSWORD}
      - MIMIC_MODEL=TimeCapsule8,119
    volumes:
      - ./data:/opt/timemachine

.env

SMB_USERNAME=timemachine
SMB_PASSWORD=your_secure_password

Share:

Ad
Favicon

 

  
 

Similar to Time Machine (mbentley)

Favicon

 

  
  
Favicon

 

  
  
Favicon