Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
additional-backups
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
vaclab
additional-backups
Commits
85d4f91a
Commit
85d4f91a
authored
5 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
init
parent
f64a7482
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
couchdb-backup.service
+13
-0
13 additions, 0 deletions
couchdb-backup.service
couchdb-backup.timer
+11
-0
11 additions, 0 deletions
couchdb-backup.timer
install
+22
-0
22 additions, 0 deletions
install
with
51 additions
and
1 deletion
README.md
+
5
−
1
View file @
85d4f91a
# couchdb-backup
Zusätzlicher Backup-Prozess speziell für CauchDB-Inhalte
\ No newline at end of file
Zusätzlicher Backup-Prozess speziell für CouchDB-Inhalte: Regelmäßig wird der
Inhalt des Verzeichnisses
`/var/lib/couchdb/`
zum Online-Speicher (»NextCloud«)
kopiert.
This diff is collapsed.
Click to expand it.
couchdb-backup.service
0 → 100644
+
13
−
0
View file @
85d4f91a
[Unit]
Description
=
CouchDB Data Backup %H
Documentation
=
https://restic.readthedocs.io/en/latest/
[Service]
Type
=
oneshot
User
=
couchdb
WorkingDirectory
=
/usr/local/share/couchdb-backup
EnvironmentFile
=
-/etc/environment
EnvironmentFile
=
/usr/local/share/vaclab-backup/backup-env.txt
ExecStartPre
=
/bin/bash -lc "tar czf /tmp/couchdb.tar.gz /var/lib/couchdb 2>/dev/null"
ExecStart
=
/bin/bash -lc "ls -l /tmp/couchdb.tar.gz > /tmp/zz"
ExecStopPost
=
/bin/bash -lc "rm -f /tmp/couchdb.tar.gz"
This diff is collapsed.
Click to expand it.
couchdb-backup.timer
0 → 100644
+
11
−
0
View file @
85d4f91a
[Unit]
Description=CouchDB Data Backup %H (Timer)
[Timer]
Persistent=false
OnCalendar=Mon-Fri *-*-* 17:00:00
[Install]
WantedBy=timers.target
This diff is collapsed.
Click to expand it.
install
0 → 100755
+
22
−
0
View file @
85d4f91a
#! /bin/bash
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2020-03-16
# Installiert alle Dateien, die für automatisches
# Backup des Verzeichnisses /var/lib/couchdb/ nötig sind.
# set -x
TARGET
=
"a73434"
if
[[
$1
]]
;
then
SERVERS
=
"
$1
"
else
SERVERS
=
"
$MASTER
a73435 a75436"
fi
REMOTE_PATH
=
/usr/local/share/couchdb-backup
RSYNC
=
"rsync --info=STATS1 -azL --delete --keep-dirlinks"
# ...
exit
0
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