TimeMachine

TimeMachine

Application Docker from moritzf's Repository

Vue d'ensemble

This application provides a Samba based Time Machine network share. It can be configured to support multiple or single users and restrict the maximum size used for Time Machine backups.

Exigences

You will need to set the filesystem permissions on disk. By default, the timemachine user is 1000:1000.

Granting Permissions to write to the directory can be achieved by executing the following command on the host (Unraid): sudo chown -R 1000:1000 /mnt/user/timemachine/

The backing data store for your persistent time machine data must support extended file attributes (xattr). Usually for shares in the Unraid Array this is not a problem. Remote file systems, such as NFS, will very likely not support xattrs. This image will check and try to set xattrs to a test file in /opt/${TM_USERNAME} to warn the user if they are not supported but this will not prevent the image from running.

Also note that if you change the User Name (TM_USERNAME) value that it will change the data path for backup data inside of the container from /opt/timemachine to /opt/value-of-TM_USERNAME.

Arguments d'exécution

Réseau
br0
Coquille
sh
Privilégié
false
Paramètres supplémentaires
--hostname timemachine

Configuration du modèle

Time Machine Backup DataPathrw

Directory to store the time machine backups. If you change the User Name (TM_USERNAME) value that it will change the data path from /opt/timemachine to /opt/value-of-TM_USERNAME.

Cible
/opt/timemachine
Valeur
/mnt/user/timemachine/
Size LimitVariable

Limits the reported disksize, thus preventing Time Machine from using the whole real disk space for backup. The option takes a number plus an optional unit (e.g. 1 T for 1 Terrabyte). IMPORTANT: This is an approximated calculation that only takes into account the contents of Time Machine sparsebundle images. Therefore you MUST NOT use this volume to store other content when using this option, because it would NOT be accounted. The calculation works by reading the band size from the Info.plist XML file of the sparsebundle, reading the bands/ directory counting the number of band files, and then multiplying one with the other.

Cible
VOLUME_SIZE_LIMIT
Défaut
1 T
Valeur
1 T
User NameVariable

sets the username time machine runs as

Cible
TM_USERNAME
Valeur
timemachine
User PasswordVariable

sets the password for the timemachine user. The default value is Z92efVNcokU26x.

Cible
PASSWORD
Défaut
Z92efVNcokU26x
Valeur
Z92efVNcokU26x
Advertised HostnameVariable

Avahi will advertise the smb services at this hostname instead of the local hostname

Cible
ADVERTISED_HOSTNAME
Valeur
timemachine
Use Custom SMB ConfigurationVariable

indicates that you are going to bind mount a custom config to /etc/samba/smb.conf if set to true

Cible
CUSTOM_SMB_CONF
Défaut
false
Valeur
false
Custom UserVariable

indicates that you are going to bind mount /etc/password, /etc/group, and /etc/shadow; and create data directories if set to true

Cible
CUSTOM_USER
Défaut
false
Valeur
false
Debug LevelVariable

sets the debug level for nmbd and smbd

Cible
DEBUG_LEVEL
Défaut
1
Valeur
1
Mimic ModelVariable

sets the value of time machine to mimic (e.g. TimeCapsule8,119 or TimeCapsule6,116)

Cible
MIMIC_MODEL
Défaut
TimeCapsule8,119
Valeur
TimeCapsule8,119
External Configuration DirectoryVariable

specifies a directory in which individual variable files, ending in .conf. In order to add multiple users who have their own shares, you will need to create a file for each user and put them in a directory.

Cible
EXTERNAL_CONF
Hide SharesVariable

set to yes if you would like only the share(s) a user can access to appear

Cible
HIDE_SHARES
Défaut
no
Valeur
no
Group NameVariable

sets the group name time machine runs as

Cible
TM_GROUPNAME
Défaut
timemachine
Valeur
timemachine
User UIDVariable

sets the UID of the Executing User (TM_USERNAME)

Cible
TM_UID
Défaut
1000
Valeur
1000
Set PermissionsVariable

set to true to have the entrypoint set ownership and permission on the /opt/ in the container

Cible
SET_PERMISSIONS
Défaut
false
Valeur
false
SMB Inherit PermissionsVariable

if yes, permissions for new files will be forced to match the parent folder

Cible
SMB_INHERIT_PERMISSIONS
Défaut
no
Valeur
no
SMB fruit:nfs_acesVariable

value of fruit:nfs_aces; support for querying and modifying the UNIX mode of directory entries via NFS ACEs

Cible
SMB_NFS_ACES
Défaut
yes
Valeur
yes
SMB fruit:metadataVariable

value of fruit:metadata; controls where the OS X metadata stream is stored

Cible
SMB_METADATA
Défaut
stream
Valeur
stream
SMB PortVariable

sets the port that Samba will be available on

Cible
SMB_PORT
Défaut
445
Valeur
445
SMB vfs objectsVariable

value of vfs objects

Cible
SMB_VFS_OBJECTS
Défaut
acl_xattr fruit streams_xattr
Valeur
acl_xattr fruit streams_xattr
SMB Workgroup NameVariable

set the SMB workgroup name

Cible
WORKGROUP
Défaut
WORKGROUP
Valeur
WORKGROUP
Group GIDVariable

sets the GID of the TM_GROUPNAME group

Cible
TM_GID
Défaut
1000
Valeur
1000
Share NameVariable

sets the name of the timemachine share to.

Cible
SHARE_NAME
Défaut
TimeMachine
Valeur
TimeMachine

Catégories

Télécharger les statistiques

5,854,960
Total des téléchargements
46,420
Ce mois-ci
38,979
Moyenne / Mois

Total des téléchargements au fil du temps

Chargement du graphique...

Détails

Référentiel
mbentley/timemachine
Dernière mise à jour2026-05-09
Première vue2022-05-25

Exécutez TimeMachine sur Unraid.

TimeMachine est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.