I've found out how to perform a streamed backup from this post.
Now, I'm facing the reverse problem - I want to perform a restore from a backup file. It is quite easy when I have a local backup file - the problem is, how to check if the remote backup file exists?
Example: my connection string is as follows : datasource=192.168.1.123;database=D:/data/MyDatabase.FDB;...
And I want to check if the file \\192.168.1.123/D:/data/MyDatabase.fbk
exists before running the restore service. Note that File.Exists(@"\\192.168.1.123/D:/data/MyDatabase.fbk")
returns false. I don't really know how to make sure the file exists before running the restore. Any idea?