Skip to content

Mounting a CIFS Pervious Versions in Linux and restoring deleted files⚓︎

Overview⚓︎

CIFS shares which support Previous Versions can be accessed via the .snapshot directory in the root of the share. This is a special hidden directory using NFS3 and NFS4 protocol specific methods which is not visible in tools like ls or du. You must explicitly call this .snapshot directory to be able to access the files contained within.

Steps⚓︎

Mount the CIFS share using the Linux CIFS v2 Mount documentation.

Bash
1
2
3
4
cd /home/linux_user/share/.snapshot
ls
cd hourly.2023-05-02_1405
rsync -av /home/linux_user/share/.snapshot/hourly.2023-05-02_1405/department/IT/ /home/linux_user/share/department/IT

References⚓︎