Giter Club home page Giter Club logo

Comments (8)

mbentley avatar mbentley commented on August 30, 2024

If you provide your run command and an example of your user config file, I can help. If you're finding the sparse bundle in that directory, it's being stored in the copy on write file system so it won't persist outside of the container. I would guess there is something bad in the config telling it to store data in the wrong place.

from docker-timemachine.

gonzalocomas avatar gonzalocomas commented on August 30, 2024

This is the run comand

sudo docker run -d \
  --restart=always \
  --name timemachine \
  --network=macvlan1 \
  --ip=10.0.1.250 \
  -e CUSTOM_SMB_CONF="false" \
  -e CUSTOM_USER="false" \
  -e DEBUG_LEVEL="1" \
  -e MIMIC_MODEL="TimeCapsule8,119" \
  -e EXTERNAL_CONF="/users" \
  -e HIDE_SHARES="no" \
  -e TM_USERNAME="timemachine" \
  -e TM_GROUPNAME="timemachine" \
  -e TM_UID="1000" \
  -e TM_GID="1000" \
  -e PASSWORD="timemachine" \
  -e SET_PERMISSIONS="false" \
  -e SHARE_NAME="TimeMachine" \
  -e SMB_PORT="445" \
  -e VOLUME_SIZE_LIMIT="0" \
  -e WORKGROUP=“CASA” \
  -v /mnt/Seagate/timemachine:/opt/timemachine \
  -v timemachine-var-lib-samba:/var/lib/samba \
  -v timemachine-var-cache-samba:/var/cache/samba \
  -v timemachine-run-samba:/run/samba \
  -v /mnt/Seagate/timemachine-users:/users \
  mbentley/timemachine:smb

And this is the user I created

TM_USERNAME=gonzalocomas
TM_GROUPNAME=gonzalocomas
PASSWORD="mypassword"
SHARE_NAME=gonzalocomas
VOLUME_SIZE_LIMIT="2 T"
TM_UID=1001
TM_GID=1001

This file is stored in mnt/Seagate/timemachine-users (name gonzalocomas.conf)

If I run this I get a share named "gonzalocomas" and it says that is 2T in size. But is not "mapped" to /mnt/Seagate/timemachine.

And I can´t login using "timemachine" user. Only gonzalocomas.

from docker-timemachine.

mbentley avatar mbentley commented on August 30, 2024

Ah, I see the problem. My example isn't great and that causes confusion. You will want to bind mount /opt/gonzalocomas from the container to your host.

So for each user, you will want to make sure that the value of SHARE_NAME is mounted from /opt in the container to somewhere on the host. In your case from your example:

-v /mnt/Seagate/gonzalocomas:/opt/gonzalocomas \

Alternately, you could just bind mount /opt and all subdirectories will be bind mounted to the host.

-v /mnt/Seagate/timemachine:/opt \

I would also suggest setting:

-e SET_PERMISSIONS="true" \

Otherwise you will have to manually set the permissions on your host filesystem.

from docker-timemachine.

mbentley avatar mbentley commented on August 30, 2024

Docs have been updated. Let me know if you still have issues.

from docker-timemachine.

gonzalocomas avatar gonzalocomas commented on August 30, 2024

from docker-timemachine.

gonzalocomas avatar gonzalocomas commented on August 30, 2024

from docker-timemachine.

mbentley avatar mbentley commented on August 30, 2024

add --hostname <whatever-hostname-you-want>

from docker-timemachine.

gonzalocomas avatar gonzalocomas commented on August 30, 2024

from docker-timemachine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.