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
7d4e2081
Commit
7d4e2081
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Backup and restore squirrelmail settings
parent
eabd9b2b
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-backup-local
+9
-0
9 additions, 0 deletions
src/freedombone-backup-local
src/freedombone-restore-local
+16
-0
16 additions, 0 deletions
src/freedombone-restore-local
with
25 additions
and
0 deletions
src/freedombone-backup-local
+
9
−
0
View file @
7d4e2081
...
...
@@ -299,6 +299,14 @@ function backup_blocklist {
rm
-rf
$temp_backup_dir
}
function
backup_squirrelmail
{
if
[
!
-d
/var/local/squirrelmail
]
;
then
return
fi
echo
$"Backing up
${
PROJECT_NAME
}
squirrelmail"
backup_directory_to_usb /var/local/squirrelmail squirrelmail
}
function
backup_configfiles
{
echo
$"Backing up
${
PROJECT_NAME
}
configuration files"
temp_backup_dir
=
/root/tempbackupconfig
...
...
@@ -483,6 +491,7 @@ backup_directories
backup_apps
local
backup_configfiles
backup_blocklist
backup_squirrelmail
backup_mariadb
backup_postgresql
backup_extra_directories
local
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-local
+
16
−
0
View file @
7d4e2081
...
...
@@ -130,6 +130,19 @@ function restore_blocklist {
fi
}
function
restore_squirrelmail
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'squirrelmail'
]]
;
then
return
fi
fi
if
[
-d
$USB_MOUNT
/backup/squirrelmail
]
;
then
echo
$"Restoring squirrelmail"
restore_directory_from_usb /var/local/squirrelmail squirrelmail
fi
}
function
restore_configfiles
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'configfiles'
]]
;
then
...
...
@@ -992,6 +1005,9 @@ increment_restore_progress
restore_blocklist
increment_restore_progress
restore_squirrelmail
increment_restore_progress
restore_configfiles
increment_restore_progress
...
...
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