I am planning to update my SambaPOS system, and I’ll take that opportunity to rationalize the ressources, better for my electricity bill and easier for my UPS - we experience almost daily power failure.
Right now I have max 4 waitresses working together and 4 computers.
Compu 1: Server (DB) + client <-wifi-> RDP on tablet
Compu 2: client <-wifi-> RDP on tablet
Compu 3: client <-wifi-> RDP on tablet
Compu 4: client <-wifi-> RDP on tablet
New system, 1 computer (i7700 + 16 GB) runnig proxmox:
1 LXC container - debian 11 running mssql 2019.
4 Windows 7 Virtual Machines running client.
that configuration works well and is really low on ressources.
Now, the next step is to install the last SambaPOS5 database onto the mssql 2019 server.
Is there such a sql script available?
When properly configured, the SambaPOS desktop application will automatically create the database and populate it with default data. From there you can restore a backup.
yes, that was my idea if not script exists.
Installing win10, sql server 2019, installing sambapos, and … finally “copy/paste” SambaPOS5" to mssql 2019 on debian.
Ok, it turned out that my question was irrelevant.
I don’t need the SambaPOS5 database creation script at all.
Like on a full-windows install, I just need to install Sambapos on one fresh windows, enter and configure the connection string (for the first time), and the next time I start SambaPOS, it will create SambaPOS5 database if it does not exist.
The fact that mssql runs on debian has no impact.
would be great if you can share hows your experience on installing sambapos on Linux based mssql server, and how well sambapos works during operation, any odd behaviour ?
sql server is on debian and the backup will be done there, not on the windows client.
You cannot change the backup directory with sambaPOS as it will add automatically "C:"
You can modify manually C:\ProgramData\SAMBAPOS\SambaPOS5\DatabaseToolsSettings to setup the linux directory where backup will be done, eg. /tmp:
And you’ll find your backup on the linux machine under /tmp
root@mssql:/tmp# ls -lh
total 13M
-rw-rw---- 1 mssql mssql 13M Feb 24 11:20 SambaPOS5_Full.bak
So in order to restore a backup - I guess that you would have to:
copy that file on your windows machine
zip it with a new name
move that zip file to the default SambaPOS5 backup directory
Restore the backup directory to its default value in SambaPOS (database backup>settings)
And finally restore you backup
I did not try yet.
the backup path should be understood by both linux and windows and as the path refers to one setting and that’s not possible, even with samba.
instead of /tmp, you could use /mnt/windows_share but you will end up with the same issue to restore your backup: zipping the file and changing backup path in SambaPOS.