-
Notifications
You must be signed in to change notification settings - Fork 131
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
using snapper with samba and vfs_snapper #917
Comments
I'll leave the Snapper log for somebody more knowledgeable to look at.
The
One thing to keep in mind is that Windows Explorer will only show Previous Versions for file snapshots with unique modification-time values. If all snapshots of a file have the same mtime as the file in the base share then no snapshots will be shown in the Previous Versions list. |
Doesn't look as intended ;-) |
Indeed, assuming your Samba users are mapped to |
Is snapper compiled with xattrs support? Please check with using |
Yes:
Ad other q:
Maybe I miss some library or package or so. Although I see the domain users and groups when I use "ls" for example: the files in the shared directory belong to AD users/groups. The snapper log entries look strange to me but I don't see what to change.
And as long as the snapshots aren't created correctly, |
Place the values for ALLOW_* in quotes and check with '''snapper get-config'''. |
Did so. The config is "samba_daten". Getting:
What do I miss? Another config called |
If the config is not root you have to provide the name like |
Ah, sorry, my mistake. OK, looks like this:
new snapshots still belong to "root:root", no ACLs:
|
Try |
@aschnell thanks, tried. Takes quite a while, I see no difference. Is it correct to look at this path:
? |
AFIAR you should look at |
Looks promising:
I mailed their admin to look into "previous versions" now (I don't have a domain member PC at hand right now). |
Side question: do I have to exclude ".snapshots" from snapper somehow? just wondering if it would snapshot the snapshots (I assume it does NOT as it is a separate subvolume etc). Thanks! |
There's no need - Btrfs snapshots aren't recursive, so the nested |
The windows system sees snapshots, but without content. I assume the actual snapshot might also need the ACLs applied?
#737 seems to be the issue |
The snapshot should carry the same permissions as the base share, i.e. if the Samba users have access to the base share for I/O then they should also (with an appropriate |
Look at this. Sounds familiar. |
I try to set up snapper for providing snapshots to be used with the samba vfs_snapper module ( https://www.samba.org/samba/docs/current/man-html/vfs_snapper.8.html )
The server is a debian-12.5 box, using snapper-0.10.4
I have these btrfs-subvolumes related to the samba-share:
The snapper-config contains:
snapper creates snapshots but:
why does it warn?
In windows there are no "previous versions" shown. I assume this is related to the ACLs/permissions ... so I would like to know why snapper doesn't apply them or what I can do to allow this.
I know this crosses multiple layers, I already asked on the samba-ML as well.
Thanks for any help ... thanks for your work.
The text was updated successfully, but these errors were encountered: