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

Sanoid: snapshot names #345

Closed
biax opened this issue Jan 31, 2019 · 1 comment
Closed

Sanoid: snapshot names #345

biax opened this issue Jan 31, 2019 · 1 comment

Comments

@biax
Copy link

biax commented Jan 31, 2019

xxpool/xxbackup@autosnap_2019-02-01_05:00:17_hourly

is it possible to not use " : " character? When its a samba share, the filenames are messed up as " : " is not an allowed character in Windows filenames. Windows explorer would show strange 8 char dirs instead.

@phreaker0
Copy link
Collaborator

@biax the snapshot name can't be changed currently.
I hit the same problem when i moved from zfs-auto-snapshot to sanoid. It can be easily solved with samba itself. You need to have the "vfs_catia" module installed and then add to the global section:

vfs objects = catia
# mapping illegal characters, where enabled with "vfs objects = catia"
mangled names = no
catia:mappings = 0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6

A smb client then sees the snapshots named like: 'autosnap_2018-09-30_22÷00÷00_monthly'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants