Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option to Enable TimeMachine Support on Shares #1030

Open
LordPhoenix-ZA opened this issue Apr 27, 2023 · 6 comments
Open

Add Option to Enable TimeMachine Support on Shares #1030

LordPhoenix-ZA opened this issue Apr 27, 2023 · 6 comments

Comments

@LordPhoenix-ZA
Copy link

Finding it hard to enable Time Machine support without messing with samba.conf. Would be nice if Casa had an option to enable a share for TimeMachine support. So Mac users can do backups.

@github-project-automation github-project-automation bot moved this to Need Triage (QA+PM) in CasaOS Issues May 4, 2023
@ETWang1991 ETWang1991 moved this from Need Triage (QA+PM) to Future in CasaOS Issues Jun 15, 2023
@ETWang1991
Copy link

Understand your needs, but I'm sure we don't have time to do this anytime soon. If there are other greats in the community who can work with you on this issue, it can be merged into casaos @LordPhoenix-ZA

@ETWang1991 ETWang1991 removed their assignment Jun 28, 2023
@spuder
Copy link

spuder commented Oct 28, 2023

This is the one feature I'd really like to see

Workaround 1:

https://mxnr.net/time-machine-on-zimaboard/amp/

(The main magic is the 'vfs objects' line)

Workaround 2:

This is a very heavy handed solution, but people have resorted to using Open Media Vault for creating the Time Machine shares

https://www.reddit.com/r/CasaOS/s/xUpjr64Q1Y

@spuder
Copy link

spuder commented Nov 26, 2023

This comes down to several sub tasks

  • Provide User interface to enable TimeMachine
  • Update global config
  • Update volume config (e.g. fruit:time machine = yes)
  • Creating a user? (e.g. valid users = timemachine)
  • Restart smb?

I've started a branch here with the easy parts changed. As I'm not a go developer, I'll give an open invitation for anyone to jump in on this.

@spuder
Copy link

spuder commented Dec 9, 2023

This will require more testing as enabling time machine support is complicated and easily breaks older macs as shown in the open media vault community

For reference, here is the jinga template that OMV uses

Additionally it is recommended that when enabling time machine on 1 share, you set vfs objects = on every other share

@iravit
Copy link

iravit commented Jun 8, 2024

Here is a quick workaround to enable TimeMachine support:

  1. Install vfs modules with command: apt install samba-vfs-modules
    Wihout this, TimeMachine configuration breaks all other smb shares.
  2. Uncomment line vfs objects = fruit streams_xattr in /etc/samba/smb.conf
  3. Add the following lines to enable TimeMachine support to the end of smb.conf file.
    Feel free to change valid users to one from valid SAMBA user as well share name and backup max size.
[TimeMachine_Backup]
 path=/shares/Backup
 valid users = pi
 guest ok = no
 read only = no
 browseable = no
 public = no
 fruit:time machine = yes
 fruit:time machine max size = 300G
 fruit:metadata = stream
 durable handles = yes
 kernel oplocks = no
 kernel share modes = no
 posix locking = no
 ea support = yes
 inherit acls = yes

@ludalex
Copy link

ludalex commented Jun 30, 2024

Would also love to see the support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Future
Development

No branches or pull requests

5 participants