What is the best way to backup a network drive in windows?

What is the best way to backup a network drive in windows?
Hi guys, thanks for this great tool, I try to make a copy of a network drive in windows but the results are not convincing.
Apparently if I do restic -r s3:repo… “//192.168.0.71
It starts the copy but then it doesn’t appear in the snapshot.
If I create a network drive eg J:\ the copy is ok.
The problem arises that when automating the copy the network drive might not be available.
Any idea what may be the best option to make a copy of windows network?.

Thank you so much for the comments.

Would you post the output of restic version and the exact commands (excl. passwords) you’re using, and their output? To backup a UNC path you’ll need to use \\hostname\share or \\IP_address\share. Keep in mind the user account running the task also needs permissions and/or drive letters to be configured.

Note that you cannot currently restore data backed via UNC paths.

Hi there,

For your use case I think the best approach is to make a script that mounts the shared folder, launchs the backup and then unmounts the drive. If mounting the shared drive fails, then abort the backup.