backup-remote | Extends backup gem to perform backups on remote servers | Continuous Backup library
kandi X-RAY | backup-remote Summary
kandi X-RAY | backup-remote Summary
Extends backup gem to perform backups on remote servers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Perform the checksum
- Create config file
- Create a new Archive
- Execute a backup
- Performs periodic operations .
- Logs out of the backup
- Runs the given block .
- Extract manifest files from manifest
- Create a trigger
- List all files
backup-remote Key Features
backup-remote Examples and Code Snippets
Community Discussions
Trending Discussions on backup-remote
QUESTION
I made regularly MySQL backups using Percona's xtrabackup, using a command I found on the net (I am not deep into databases nor in their tools):
...ANSWER
Answered 2018-Jun-18 at 15:36Regarding your questions:
1) how is the normal way to restore the DB from local TAR using --move-back to decompress everything in place and not use extra space on the disk?
You can extract the file and pipe the output to the destination server using the command line below:
# Execute the command where the backup is located
ssh @ "cd && tar -xvv" < backup.tar
Using this method you will avoid the extra space needed to uncompress and copy. Next, you need to prepare the backup, which is your question number 3:
3) being streamed=tar, how do I prepare (if necessary) the tar before restore?
$ xtrabackup --prepare --target-dir=./
Or with innobackupex
:
$ innobackupex --apply-log ./
Note that in the end, if the operation completes with success, you will see the message:
InnoDB: Shutdown completed; log sequence number 9059880
180618 11:05:22 completed OK!
Then MySQL will be ready to start.
More information can be found on these links:
Preparing the backup with xtrabackup
QUESTION
This is actually a question following from my previous one.
I am trying to use docker to host a personal note-taking web service and want to backup data generated by the service (my notes). Currently I plan to use git to commit, pull, and push to a repository for my purpose.
To do git pull and push, my docker image needs to host my credentials. What is the easiest yet safe way to achieve this?
What I have done so far:
- I choose
Alpine
as the base image of the image of my service. - Because I only need credentials for git, I think put a git credential helper into the image may solve my problem. I can save credentials to the helper during the build time and use them during runtime.
- I googled a while and decided to use
libsecret
as my git credential helper, according to this article. - I have installed
libsecret
and set my git credential helper to begit-credential-libsecret
However, I cannot make git-credential-libsecret
functional so far. Here are a couple of problems that I encountered:
Firstly, I tested
git-credential-libsecret get
and get the following error:CRITICAL **: could not connect to Secret Service: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file */var/lib/dbus/machine-id*: No such file or directory
- I (probably?) solved it by installing
dbus
and rundbus-uuidgen > /var/lib/dbus/machine-id
- I (probably?) solved it by installing
Then I try to run
git-credential-libsecret get
again. This time, it reports that:CRITICAL **: could not connect to Secret Service: Cannot autolaunch D-Bus without X11 $DISPLAY
- I tried to install
dbus-x11
and rundbus-launch --sh-syntax
(from here) but with no luck this time. The error continues.
- I tried to install
In conclusion, I would like to know:
- Am I on a right direction (using git credential helper) to achieve my goal?
- If so, how can I resolve the X11 problem?
- Are there any other quick and clean methods to backup data in docker with version control?
ANSWER
Answered 2018-Jan-13 at 07:37It depends on where you are running git-credential-libsecret: you need to have it installed in your image/container, not on the host.
Note that another option would be to use a volume (see my answer to your previous question), in which case, git
could be installed only on the host.
But here, you would use git directly in your image, which means, as in this Dockerfile, you need to have in your Dockerfile:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install backup-remote
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page