Backing up shared folders

Hi,

Backing up shared folders as source does not work.

It works normal till the end and at the end gives as ‘Fatial error file not found’
Some thing like that

restic backup //172.16.0.111/folder

Has anyone tried & got success

A log output will be more helpful for someone to help diagnose. However, keep in mind this bug which affects restores in Windows when backing up via UNC paths: https://github.com/restic/restic/issues/1904

command for backup
restic_0.9.2_windows_amd64.exe -r \192.168.0.121\Restic --hostname SEAGATE backup \192.168.0.121\folder

Error at the end
Fatal: unable to save snapshot: Lstat: CreateFile \?\C:\Users\Administrator\192.168.0.121: The system cannot find the file specified.

Have you tried using the drive letter to access the share?

Something like this (replace F with your drive letter):
restic_0.9.2_windows_amd64.exe -r F:\Restic --hostname SEAGATE backup F:\folder

ya…
A command like this works fine. Only network path fails. :slight_smile:

I want to backup my nas box this way

Just to clarify, are you specifying network paths with \ at the start? Like \ip\path (your example only shows single slashes)?

Ya it’s double slashes…

Backups run till the end and give out that error.
In this case around 35 gb
I need to purge the repository later. It than reduces around 24 gb.

The solution was to use a slash at the end like //172.16.0.99/share/

But the new problem is restoration failure completely