Normal Topic Copying Databases at remote locations (Read 7563 times)
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Copying Databases at remote locations
May 1st, 2021 at 2:42pm
Print Post Print Post  
I have Sesame set up in a retail environment with 4 locations.  The main location  has multiple computers in a network.  The other 3 locations are standalone single computers, but have Sesame Servers set up on them.

Everything is working well, but I have a dilemma with our Inventory database.  All changes and edits occur at the Main location.  The other locations are sent a copy of that database at the end of the day and sometimes through the day.

To do this, I must connect to the remote computers and Unload the inventory database so it can be copied over.  Then I reconnect using the File Transfer.  This is fine for me, but if someone else has to do it, it will be a problem.

On the Server setup, the inventory remains Loaded after it is closed, but not in standalone. I cannot open the inventory in standalone if it is already loaded through the Server.

Any ideas how to make this simpler?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Copying Databases at remote locations
Reply #1 - May 4th, 2021 at 3:00pm
Print Post Print Post  
You could set up a batch file that can unload the database(using the Sesame "-command" command line switch), backup the current files, and then connect to an FTP Server and download the .DB and .DAT files that are on it. Then either put it on a scheduled task to run when no one is in the remote offices at say 2 in the morning, or have a shortcut to the batch file on the desktop that the user just has to double click before using Sesame for the day.

Could even put a similar script on the Server that does the same but puts the files on the FTP server at an earlier time in the early morning.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Copying Databases at remote locations
Reply #2 - May 12th, 2021 at 4:46pm
Print Post Print Post  
Hi Ray,

I am slowly getting the hang of this.
I made a batch file that uses the command line below for different databases.

c:
cd\Sesame2
cd Program
sesame.exe -command DESKTOP-029G63D  hello UNLOAD "INVENTORY"
sesame.exe -command DESKTOP-029G63D  hello UNLOAD "SOLD NG"

COPY X:\INVENT.DB C:\SESAME2\DATA\INVENT.DB
COPY X:\INVENT.DAT C:\SESAME2\DATA\INVENT.DAT
COPY X:\NG\SOLDNG.DB C:\SESAME2\DATA\SOLDNG.DB
COPY X:\NG\SOLDNG.DAT C:\SESAME2\DATA\SOLDNG.DAT

CD\SESAME2\UTILITIES\LANTICA
SUNLOCK C:\SESAME2\DATA\INVENT.DB
SUNLOCK C:\SESAME2\DATA\SOLDNG.DB

exit

The one problem I encountered that if a database is not loaded, I get a warning popup from Sesame which pauses the batch file.  In the example above it would be the SOLDNG database. I must hit the enter key to continue the batch file. 

Is there a way to shut off the warning?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Copying Databases at remote locations
Reply #3 - May 13th, 2021 at 2:21pm
Print Post Print Post  
Hello,

There is not a way to suppress that warning, and unfortunately the LOAD command gives a different popup box that also requires user intervention.

You could add a simple XLookup in the On Application Open event of the Inventory application that would make sure the SoldNG App is loaded when it is.(assuming you have Database Retention turned on)

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Copying Databases at remote locations
Reply #4 - May 14th, 2021 at 1:11am
Print Post Print Post  
Ray,

"-warn_none" won't do it?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Copying Databases at remote locations
Reply #5 - May 14th, 2021 at 1:13am
Print Post Print Post  
Yes, I do as you advise me to do before.

Right now, I do not update the sold databases at the other locations since it doesn't seem they use them.  The inventory database is always accessed everyday.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Copying Databases at remote locations
Reply #6 - May 14th, 2021 at 1:15pm
Print Post Print Post  
The Cow wrote on May 14th, 2021 at 1:11am:
Ray,

"-warn_none" won't do it?


Nope.
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
wattsup
Member
*
Offline



Posts: 7
Joined: Mar 16th, 2020
Re: Copying Databases at remote locations
Reply #7 - May 14th, 2021 at 6:18pm
Print Post Print Post  
Some other options;

1) Get a mutil-license from Sesame and have your remotes work off the main server directly. They can even set it up.

2) Put AnyDesk on the Remotes and the Main and have direct access to each. That's what I do cause I want complete control whenever a db or dsr is copied or overwritten. It's simple copy from the remote and paste on your Desktop.
  
Back to top
 
IP Logged