You are viewing limited content. For full access, please sign in.

Question

Question

Backup - script to take repository offline

asked on February 5, 2014

 

Newbie to laserfiche...

I'm working on setting up backups for our new 9.0 system.

I'm looking for a way to take the repository offline during backups (and bring online after backup).  I'm hoping this can be done via a script.

I read it can be done with a WMI script.  Is there a sample script somewhere?  or someone willing to share a sample?

Thanks.

0 0

Answer

APPROVED ANSWER
replied on February 5, 2014

If this is for backup purposes, a more elegant method could be to lock the repository and set the Everyone group to read-only using a Laserfiche SDK script. Of course, this method would be possible only if you have the SDK.

 

You can turn off the Laserfiche Server service as well, but note that doing so will sever the connections of all users, which may cause them to lose unsaved work. So make sure everyone is notified ahead of time that the server will be taken down, first.

 

There are also ways to do "hot" backups where the repository can remain online while you back it up. You can find more information in our Designing a Laserfiche 8 Backup and Recovery Plan whitepaper. The information will also apply to Laserfiche 9.

0 0

Replies

replied on February 5, 2014 Show version history

I've never had to take the whole thing offline, but you could just stop the LFS service. You could easily do that with a simple PowerShell script.

 

Note that this wouldn't work if you had multiple repositories and only wanted to take one of them offline at a time.

2 0
APPROVED ANSWER
replied on February 5, 2014

If this is for backup purposes, a more elegant method could be to lock the repository and set the Everyone group to read-only using a Laserfiche SDK script. Of course, this method would be possible only if you have the SDK.

 

You can turn off the Laserfiche Server service as well, but note that doing so will sever the connections of all users, which may cause them to lose unsaved work. So make sure everyone is notified ahead of time that the server will be taken down, first.

 

There are also ways to do "hot" backups where the repository can remain online while you back it up. You can find more information in our Designing a Laserfiche 8 Backup and Recovery Plan whitepaper. The information will also apply to Laserfiche 9.

0 0
replied on February 14, 2014

Thanks Ege.  Does Laserfiche have some sample scripts that they're willing to share?  I have pretty basic scripting skills so it would be nice not to have to "reinvent the wheel".  

0 1
replied on March 28, 2014

Anyone has the sdk script, how does setting Everyone Group to read only help, we are using windows groups ad groups, we do not even have Everyone group listed anywhere on any of the folders or repository itself. We have sdk but where do you find these scripts ?

0 0
replied on April 3, 2014

The 'everyone' group is a special built-in group that automatically includes every single user in your repository. In the Laserfiche administration console you will see it has it's own node along side Users, Groups, and Windows Accounts. You can manage it there.

1 0
replied on April 3, 2014

Just wanted to update that even if you set a particular volume to read-only state, it will disable file changes made however you can Rename/delete a folder add new folders, which should not be allowed if volume is in read-only state, why does LF not set the volume in complete Read Only state ?

0 2
replied on April 3, 2014

Please don't post the same question in multiple threads, as then some iterations of them get answered and some don't. For others reading this thread, the answer to this specific question can be found in: https://answers.laserfiche.com/questions/53748/ReadOnly-Volume-State-not-a-True-Read-Only-State-#53758

1 1
You are not allowed to follow up in this post.

Sign in to reply to this post.