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
83430ecf
Commit
83430ecf
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move remote rss backup to app script
parent
d27a518b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-rss
+21
-2
21 additions, 2 deletions
src/freedombone-app-rss
src/freedombone-backup-remote
+0
-17
0 additions, 17 deletions
src/freedombone-backup-remote
with
21 additions
and
19 deletions
src/freedombone-app-rss
+
21
−
2
View file @
83430ecf
...
...
@@ -43,7 +43,7 @@ RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
RSS_READER_GNUSOCIAL_COMMIT
=
'8b92b8f5db7b0d12459c7bd86a50f48815efe642'
function
reconfigure_rss
{
echo
-n
''
echo
-n
''
}
function
upgrade_rss
{
...
...
@@ -121,7 +121,26 @@ function restore_local_rss {
}
function
backup_remote_rss
{
echo
-n
''
if
grep
-q
"RSS reader domain"
$COMPLETION_FILE
;
then
RSS_READER_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"RSS reader domain"
|
awk
-F
':'
'{print $2}'
)
if
[
-d
/etc/share/tt-rss
]
;
then
function_check suspend_site
suspend_site
${
RSS_READER_DOMAIN_NAME
}
function_check backup_database_to_friend
backup_database_to_friend ttrss
echo
$"Backing up RSS reader installation"
function_check backup_directory_to_friend
backup_directory_to_friend /etc/share/tt-rss ttrss
function_check restart_site
restart_site
else
echo
$"RSS reader domain specified but not found in /etc/share/ttrss}"
fi
fi
}
function
restore_remote_rss
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-backup-remote
+
0
−
17
View file @
83430ecf
...
...
@@ -244,22 +244,6 @@ function backup_tor {
fi
}
function
backup_rss
{
if
grep
-q
"RSS reader domain"
$COMPLETION_FILE
;
then
RSS_READER_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"RSS reader domain"
|
awk
-F
':'
'{print $2}'
)
if
[
-d
/etc/share/tt-rss
]
;
then
suspend_site
${
RSS_READER_DOMAIN_NAME
}
backup_database_to_friend ttrss
backup_directory_to_friend /root/tempttrssdata ttrssdata
echo
$"Backing up RSS reader installation"
backup_directory_to_friend /etc/share/tt-rss ttrss
restart_site
else
echo
$"RSS reader domain specified but not found in /etc/share/ttrss}"
fi
fi
}
function
backup_hubzilla
{
if
grep
-q
"Hubzilla domain"
$COMPLETION_FILE
;
then
HUBZILLA_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Hubzilla domain"
|
awk
-F
':'
'{print $2}'
)
...
...
@@ -568,7 +552,6 @@ if [[ $TEST_MODE == "no" ]]; then
backup_admin_readme
backup_mariadb
backup_rss
backup_hubzilla
backup_syncthing
backup_mediagoblin
...
...
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