Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
05c53ce5
Commit
05c53ce5
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Stopping and restarting pleroma during backups
parent
b8327a44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-pleroma
+12
-0
12 additions, 0 deletions
src/freedombone-app-pleroma
with
12 additions
and
0 deletions
src/freedombone-app-pleroma
+
12
−
0
View file @
05c53ce5
...
...
@@ -744,6 +744,8 @@ function backup_local_pleroma {
PLEROMA_DOMAIN_NAME
=
$(
get_completion_param
"pleroma domain"
)
fi
systemctl stop pleroma
function_check suspend_site
suspend_site
${
PLEROMA_DOMAIN_NAME
}
...
...
@@ -757,6 +759,8 @@ function backup_local_pleroma {
function_check restart_site
restart_site
systemctl restart pleroma
}
function
restore_local_pleroma
{
...
...
@@ -769,6 +773,8 @@ function restore_local_pleroma {
temp_restore_dir
=
/root/temppleroma
pleroma_dir
=
$PLEROMA_DIR
systemctl stop pleroma
PLEROMA_ONION_HOSTNAME
=
$(
cat
/var/lib/tor/hidden_service_pleroma/hostname
)
function_check pleroma_create_database
pleroma_create_database
...
...
@@ -797,6 +803,8 @@ function backup_remote_pleroma {
PLEROMA_DOMAIN_NAME
=
$(
get_completion_param
"pleroma domain"
)
fi
systemctl stop pleroma
function_check suspend_site
suspend_site
${
PLEROMA_DOMAIN_NAME
}
...
...
@@ -810,6 +818,8 @@ function backup_remote_pleroma {
function_check restart_site
restart_site
systemctl restart pleroma
}
function
restore_remote_pleroma
{
...
...
@@ -822,6 +832,8 @@ function restore_remote_pleroma {
temp_restore_dir
=
/root/temppleroma
pleroma_dir
=
$PLEROMA_DIR
systemctl stop pleroma
PLEROMA_ONION_HOSTNAME
=
$(
cat
/var/lib/tor/hidden_service_pleroma/hostname
)
function_check pleroma_create_database
pleroma_create_database
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment