VFS_SHADOW_COPY(8)
β¨ VFS_SHADOW_COPY β¨
okay bestie, pull up a chair π«Ά this is the vfs_shadow_copy(8) page β it lives in section 8 of the manual, the System Administration tools zone, and it's lowkey one of the cutest tricks in the whole Samba lineup. let's get into it π
πΈ NAME πΈ
vfs_shadow_copy β expose snapshots to Windows clients as shadow copies. that's it, that's the vibe β¨
π¦ SYNOPSIS π¦
vfs objects = shadow_copy
π DESCRIPTION π
so this VFS module is part of the samba(7) suite, obviously π
vfs_shadow_copy does functionality that is similar to Microsoft Shadow Copy services. and when you set it up properly β key word, properly β it lets Microsoft Shadow Copy clients browse "shadow copies" on Samba shares. the way that Windows machines just see them and go π yes queen. iconic behaviour fr fr.
also: this module is stackable. yes bestie, you can stack it. we love a flexible icon π
π CONFIGURATION π
vfs_shadow_copy relies on a filesystem snapshot implementation. no snapshots, no magic. many common filesystems have native support for this, so check yours first, iykyk π§
here's the important part bestie, do not skip this:
Filesystem snapshots must be mounted on specially named directories in order to be recognized by vfs_shadow_copy. The snapshot mount points must be immediate children of the directory being shared. not grandchildren, not cousins, not second-cousins-once-removed. immediate children. periodt π
The snapshot naming convention is:
@GMT-YYYY.MM.DD-hh.mm.ss
where:
YYYYis the 4 digit yearMMis the 2 digit monthDDis the 2 digit dayhhis the 2 digit hourmmis the 2 digit minutessis the 2 digit second.
and guess what β the vfs_shadow_copy snapshot naming convention can be produced with the following date(1) command:
TZ=GMT date +@GMT-%Y.%m.%d-%H.%M.%S
literally copy that, paste it, thank me later π
π EXAMPLES π
want shadow copy support on user home directories? say less:
[homes]
vfs objects = shadow_copy
that's the whole thing. slay β¨
π CAVEATS π
okay this is the serious part, bestie, listen up because i love you π«Ά
This is not a backup, archival, or version control solution.
With Samba or Windows servers, vfs_shadow_copy is designed to be an end-user tool only. It does not replace or enhance your backup and archival solutions and should in no way be considered as such.
Additionally, if you need version control, implement a version control system. like actually. do not use this as your version control. i'm begging π
β VERSION β
This man page is part of version 4.24.7-Ubuntu-4.24.7+dfsg-1ubuntu1 of the Samba suite. keep that in your notes π
π AUTHOR π
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. legends only, no cap π
and that's the page babes π shoutout to Samba 4.24.7-Ubuntu-4.24.7+dfsg-1ubuntu1, dated 09/13/2026 β go forth and browse your shadow copies responsibly, mwah π
β¨π
π¦ where this page comes from
- ubuntu stonking: samba 2:4.24.7+dfsg-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms