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
5d0241b1
Commit
5d0241b1
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Local backup of rss
parent
efcdf72b
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-backup-local
+9
-0
9 additions, 0 deletions
src/freedombone-backup-local
with
9 additions
and
0 deletions
src/freedombone-backup-local
+
9
−
0
View file @
5d0241b1
...
...
@@ -80,6 +80,10 @@ function restart_site {
}
function
update_domains
{
RSS_READER_DOMAIN_NAME
=
'ttrss'
if
grep
-q
"RSS reader domain"
$COMPLETION_FILE
;
then
RSS_READER_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Gogs domain"
|
awk
-F
':'
'{print $2}'
)
fi
GIT_DOMAIN_NAME
=
'gogs'
if
grep
-q
"Gogs domain"
$COMPLETION_FILE
;
then
GIT_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Gogs domain"
|
awk
-F
':'
'{print $2}'
)
...
...
@@ -341,6 +345,7 @@ function backup_directories {
"none, none, /var/lib/dokuwiki, wiki"
"none, none, /etc/dokuwiki, wiki2"
"none, none, /etc/ssl, ssl"
"/etc/share/ttrss, ttrss, /root/tempttrssdata, ttrss"
"none, none, /var/spool/mlmmj, mailinglist"
"none, none, /var/lib/prosody, xmpp"
"none, none, /etc/nginx/sites-available, web"
...
...
@@ -380,6 +385,9 @@ function backup_directories {
if
[[
"
$database_name
"
==
*
"gogs"
*
]]
;
then
suspend_site
${
GIT_DOMAIN_NAME
}
fi
if
[[
"
$database_name
"
==
*
"ttrss"
*
]]
;
then
suspend_site
${
RSS_READER_DOMAIN_NAME
}
fi
if
[[
$required_directory
!=
"none"
]]
;
then
if
[
-d
$required_directory
]
;
then
...
...
@@ -504,6 +512,7 @@ function valid_backup_destination {
"
$destination_dir
"
==
"dlna"
||
\
"
$destination_dir
"
==
"tox"
||
\
"
$destination_dir
"
==
"ssl"
||
\
"
$destination_dir
"
==
"ttrss"
||
\
"
$destination_dir
"
==
"blog"
||
\
"
$destination_dir
"
==
"owncloud"
||
\
"
$destination_dir
"
==
"owncloud2"
||
\
...
...
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