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
026da0b3
Commit
026da0b3
authored
5 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
.gz --> .xz (517MB --> 185MB)
parent
b0e46f79
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
couchdb-backup.service
+2
-1
2 additions, 1 deletion
couchdb-backup.service
with
7 additions
and
2 deletions
README.md
+
5
−
1
View file @
026da0b3
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
Zusätzlicher Backup-Prozess speziell für CouchDB-Inhalte: Regelmäßig wird der
Zusätzlicher Backup-Prozess speziell für CouchDB-Inhalte: Regelmäßig wird der
Inhalt des Verzeichnisses
`/var/lib/couchdb/`
zum Online-Speicher (»NextCloud«)
Inhalt des Verzeichnisses
`/var/lib/couchdb/`
zum Online-Speicher (»NextCloud«)
kopiert (dort:
`couchdb-backup/couchdb.tar.gz`
).
kopiert (dort:
`couchdb-backup/couchdb.tar.xz`
).
## Entpacken
cat couchdb.tar.xz | unxz - | tar xvf -
This diff is collapsed.
Click to expand it.
couchdb-backup.service
+
2
−
1
View file @
026da0b3
...
@@ -8,7 +8,8 @@ User=root
...
@@ -8,7 +8,8 @@ User=root
WorkingDirectory
=
/usr/local/share/couchdb-backup
WorkingDirectory
=
/usr/local/share/couchdb-backup
EnvironmentFile
=
-/etc/environment
EnvironmentFile
=
-/etc/environment
EnvironmentFile
=
/usr/local/share/vaclab-backup/backup-env.txt
EnvironmentFile
=
/usr/local/share/vaclab-backup/backup-env.txt
ExecStartPre
=
/bin/bash -lc "tar c
z
f /tmp/couchdb.tar.
g
z /var/lib/couchdb 2>/dev/null"
ExecStartPre
=
/bin/bash -lc "tar cf /tmp/couchdb.tar.
xz --x
z /var/lib/couchdb 2>/dev/null"
ExecStart
=
/bin/bash -lc "rclone mkdir PTBcloud:couchdb-backup &&
\
ExecStart
=
/bin/bash -lc "rclone mkdir PTBcloud:couchdb-backup &&
\
rclone copy /tmp/couchdb.tar.gz PTBcloud:couchdb-backup"
rclone copy /tmp/couchdb.tar.gz PTBcloud:couchdb-backup"
ExecStopPost
=
/bin/bash -lc "rm -f /tmp/couchdb.tar.gz"
ExecStopPost
=
/bin/bash -lc "rm -f /tmp/couchdb.tar.gz"
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