PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → HyperFileSQL. Backup to a UNC path with credentials
HyperFileSQL. Backup to a UNC path with credentials
Iniciado por guest, 29,may. 2015 13:24 - 4 respuestas
Publicado el 29,mayo 2015 - 13:24
I want to make a backup of my databases (HyperFileSQL) from the option "backups" of "HyperFileSQL Control Center".
This backup must be stored in a UNC path (\\Server\SharedFolder), but to open this folder I need connect with a user/password.
Does someone know how to connect indicating the credentials to save the backup on this shared folder?

Thank you.

Víctor Diego
Publicado el 29,mayo 2015 - 14:13
Hi Victor,

This is what I think you need to do:
1. find out what user is running both HFSQL services (probably system)
2. -EITHER- give this user access rights to the UNC path in question -OR- specify ANOTHER user/password as running the services (and this user has the rights)

Best regards
Publicado el 29,mayo 2015 - 14:48
If the hfsql service is running with one of the system accounts you can manage your share rights for the computer running the service.

check the permissions of the system accounts in this help page:
http://doc.windev.com/en-US/…
Publicado el 29,mayo 2015 - 16:35
Hi.
This has nothing to do with HFSQL Control Center. And also standalone Backup Applications don't do that eihter.
What you can do is authenticate with the net.exe command.

NET USE \\Server\SharedFolder /user:jose mypassword

You can also assign a drive letter:

NET USE Z: \\Server\SharedFolder /user:jose mypassword

And if you don't want to execute the command on each restart then you can use /persistent:

NET USE Z: \\Server\SharedFolder /user:jose mypassword /persistent:yes

If the remote computer is on a domain, use this syntax:

NET USE Z: \\Server\SharedFolder /user:jose@mydomain.com mypassword /persistent:yes
or
NET USE Z: \\Server\SharedFolder /user:\\mydomain.com\jose mypassword /persistent:yes

Regards,
José Antonio.
Publicado el 01,junio 2015 - 09:01
Hi.
Thank you everybody. I will try your suggestions.

Best regards.

Víctor Diego