Page Index Toggle Pages: 1 [2] 3  Send Topic Send Topic Print Print
Very Hot Topic (More than 25 Replies) Sesame Nightly Backup procedure (Read 7891 times)
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame Nightly Backup procedure
Reply #15 - Apr 9th, 2011 at 6:15am
Print Post Print Post  
If you prefer the GUI approach and are using the Gnome desktop, you might consider installing "gnome-schedule" or if you prefer KDE (I do), you can use can use the task scheduler located under system > system setting menu. Both work on either desktop, but may already be installed on the one that they were built for.
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #16 - Apr 9th, 2011 at 2:32pm
Print Post Print Post  
Thank you, Gentlemen.

For a sesame server running on Linux (Ubuntu)....

I installed 'scheduled-tasks' from the Gnome install screen and found it simple to add a new task to run each night.

I then used gedit to create a file called 'sesame-backup' with the below code.  It (apparently) paused sesame server, copied all by data files to a folder, then un-paused the server in a blink of an eye. (the -u will copy only CHANGED files.)

Used linux commands to make the file executable.

Code
Select All
/home/steve/sesame/Program/sesame -COMMAND myserver:20020:20021 password SUSPEND
cp -u /home/steve/sesame/data/*.* /home/steve/sesame/data/backups
/home/steve/sesame/Program/sesame -COMMAND myserver:20020:20021 password CONTINUE
 



Next I'll add a task (or add a line to the batch file) to ftp the backup files to a secure location.

Mark, thanks for all your help. Running sesame on Linux has really put the fun back into sesame. I really appreciate it.

Steve

  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #17 - Apr 10th, 2011 at 1:43pm
Print Post Print Post  
Mark,

The procedure I used on Linux causes a 'new user' to be connected (myserver) and STAY connected after the backup is finished.

Any way to disconnect just this 'user' after completing the backup? Or make the backup without connecting as a new user?

Steve
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame Nightly Backup procedure
Reply #18 - Apr 11th, 2011 at 2:14pm
Print Post Print Post  
Steve_in_Texas wrote on Apr 10th, 2011 at 1:43pm:
Mark,

The procedure I used on Linux causes a 'new user' to be connected (myserver) and STAY connected after the backup is finished.

Any way to disconnect just this 'user' after completing the backup? Or make the backup without connecting as a new user?

Steve



That is a little odd. I just tried the code you posted above and Sesame server doesn't have time to acknowledge the connection. It connects, runs the command, and disconnects completely, without increasing the client count at all. In any case, the "admin" and "command" connections get counted separately from normal client connections and do not add to the client count when checking against the license limit. So, even if you have a full client count, you can still connect as admin or command.
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #19 - Apr 11th, 2011 at 3:29pm
Print Post Print Post  
It sounds like we can 'shrug off' this issue, except that i think the server will not 'gracefully' shut down while these 'admin' users are logged in.

(If i remember correctly, Sesame Server counts down 90 seconds, then gives a Segmentation Fault when trying to stop the server.)

I'll test it again tonight to confirm.

Sincerely,
Steve
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame Nightly Backup procedure
Reply #20 - Apr 11th, 2011 at 4:30pm
Print Post Print Post  
That's two for two. I don't see the command client using any licenses, never mind staying logged in. And I haven't seen any segmentation faults when shutting down the server.
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #21 - Apr 11th, 2011 at 4:41pm
Print Post Print Post  
I'm referring to the listing of 'clients' on the Notification tab in the admin panel.

After running the backup command, I see my server machine name listed twice, each time I run the backup routine.

When I try to 'Stop This Server' from the servers tab, I get the countdown and the error message.

Steve
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #22 - Apr 11th, 2011 at 4:50pm
Print Post Print Post  
FYI, my backup takes about 30 seconds to complete, which is plenty fast for me, but maybe that's just long enough to prevent the 'command client' from disconnecting.
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame Nightly Backup procedure
Reply #23 - Apr 11th, 2011 at 4:59pm
Print Post Print Post  
Your backup doesn't start running until after the first command completes, and on my machines - disconnects. You probably don't want this in this case, but on Unix, if you type a "&" at the end of a command line (or line in a shell script), that command line will run as a separate process and give your command prompt back before that process completes.

So basically, these 3 command all run at once:

cp -v -r /etc /home/steve/MyEtc &
ls -lR /home/steve &
tar xvzf sesame.tgz sesame sdesigner /home/steve/Sesame/data
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #24 - Apr 11th, 2011 at 5:20pm
Print Post Print Post  
OK, i'll add the '&' to first two lines and try again tonight.

Thanks!
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #25 - Apr 11th, 2011 at 11:31pm
Print Post Print Post  
I added the '&' but get the same results.

During my backup procedure, the client COUNT on the server GUI does not increase, but MYSERVER name does appear twice in the admin panel's list of connected clients.

When I use the 'shutdown this server' command, i get the countdown. After 90 seconds, sesame shuts down and give this message in the terminal window:

Error: Client connection failed. Client authentication error.
Segmentation fault

without running the backups routine, sesame will gracefully disconnect me from the admin panel and close without the 90 sec. countdown.

Seems like we need a command to disconnect MYSERVER after making the backup?

Steve
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #26 - Apr 11th, 2011 at 11:33pm
Print Post Print Post  
And now i see that my aps that were loaded are locked. Sad
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame Nightly Backup procedure
Reply #27 - Apr 12th, 2011 at 12:35pm
Print Post Print Post  
As I said, you really don't want the "&" in this case. I was just letting you know how to do something generally useful. In this case you really want each command to finish before the next starts.
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sesame Nightly Backup procedure
Reply #28 - Apr 12th, 2011 at 2:34pm
Print Post Print Post  
OK, thanks Mark. I'll revert to my old code, but the results will be the same.

If you can think of a different option that will not have 'shutdown issues', please let me know.

Sincerely,

Steve
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame Nightly Backup procedure
Reply #29 - Apr 12th, 2011 at 2:49pm
Print Post Print Post  
The script you posted earlier does not issue the shutdown, nor should it. Why are you shutting down the server? I will try again to reproduce the problems you are having, but so far I haven't seen any of them here.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send Topic Send Topic Print Print