Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,711
Issues
1,711
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
c4d9e074
Commit
c4d9e074
authored
Oct 16, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/server.md: backups, details, old docs
parent
ea4c2641
Pipeline
#44214
failed with stages
in 13 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
doc/server.md
doc/server.md
+15
-11
No files found.
doc/server.md
View file @
c4d9e074
...
...
@@ -686,17 +686,18 @@ Web2py and Vidjil are no exception to this rule.
## Making backups
Performing an Analysis in Vidjil is time-consuming, therefore should the
data be lost, valuable man-hours are also lost.
In order to prevent this we make regular incremental backups of the
data stored on the vidjil servers.
The top priority is to backup
*files created during the analysis*
(either by a software or a human).
Should the data be lost, valuable man-hours would be lost.
In order to prevent this, we make twice a day incremental backups of the
data stored on the public Vidjil servers.
This
applies to the files created during the analysis (either by a software or a human).
This does not apply to uploaded
files.
This
does not apply to uploaded files. We public servers that they should
keep a backup of their original sequence
files.
To ease the backup, the
`backup.sh`
script provides an example. For this
script to be ran automatically, it is required that
`mysqldump`
does not ask
for a password. The credentials informations should be provided in a
`~/.my.cnf`
file (
for MySQL obviously
).
for a password. The credentials informations should be provided in a
`~/.my.cnf`
file (
in the case of MySQL
).
```
conf
[
client
]
...
...
@@ -709,11 +710,13 @@ It is also advised that the backup user has a read-only access to the database.
## Autodelete and Permissions
Web2py has a handy feature called
AutoDelete
which allows the administrator
Web2py has a handy feature called
`AutoDelete`
which allows the administrator
to state that file reference deletions should be cascaded if no other
references to the file exist.
When deploying to production one needs to make sure
AutoDelete
is
When deploying to production one needs to make sure
`AutoDelete`
is
deactivated.
This is the case for the default Vijdil installation (see
`server/web2py/applications/vidjil/models/db.py`
).
As a second precaution it is also wise to temporarily restrict web2py's
access to referenced files.
...
...
@@ -721,7 +724,9 @@ Taking two mesures to prevent file loss might seem like overkill, but
securing data is more important than the small amount of extra time spent
putting these mesures into place.
## Deploying the server
# Plain server installation -- updating the server
**(information to be updated)**
Currently deploying changes to production is analogous to merging into the
rbx branch and pulling from the server.
...
...
@@ -733,7 +738,6 @@ then looking at the database.
## Step by Step
-
Set AutoDelete to False
-
Check permissions on the uploads folder (set to 100)
-
you can also check the amount of files present at this point for future
reference
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment