-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync between a bare metal install and a backup docker install #24
Comments
I know the reason i had not answered before was because i don't know what "bare metal" means as far as a configuration is concerned. The readme does pretty good as giving general instruction of how to get the syncing to work via ssh. If you can give a bit more data though i will attempt to assist you in getting it working. |
I am so sorry I was not clear, bare-metal meaning ubuntu 18.04 server installed on a physical Dell Server that is running plexserver, the other plexserver (docker) is running on another server that is running Debian 10 and Docker. The concern I had how to perform start stop for each and where to run this, on Ubuntu server or run it as docker. |
it can be run from either side. You first need to decide where you want it to run and set up the commands for server 1 and server 2 appropriately. So the server that you run sync on will be local command like "docker stop plex" or similar and the remote server will be "ssh -oStrictHostKeyChecking=no -i /keys/serverkey [email protected] service plexmediaserver stop" which gives docker on the remote machine a stop command via an ssh command using a locally stored RSA key for authentication. So you have to decide which computer you want to enable ssh on and get a key set up for connecting properly then build up the syncing commands from there. Do some local testing at the command line on your own. Once you have the start and stop working remotely via a single command it shouldn't be too hard to plug them into the run command for this script. *edit - fix fat fingering from typing on phone |
Thanks for the examples, so I decided to try to run as docker, here is my docker create command: docker create However I am getting the error : invalid reference format: repository name must be lowercase |
In script world a space means "move on to the next potential command". edit, adding \ to each line end to allow the new line breaks
|
yeah i used the same command, the backward slash was lost since i did not use the insert code while pasting the command. also if you just paste it, it would throw a different error: Usage: docker create [OPTIONS] IMAGE [COMMAND] [ARG...] Create a new container |
when i copy and paste it i get
|
It worked for me too! Must be a format issue or something, thank you! Now to test if it works... |
ok after testing this is what I get from the docker shell: |
Seems pretty obvious by the error that ssh wont let you load a key from a file that has incorrect permissions. Research the error and someone will have said what the permissions need to be then you can change permissions on the file appropriately and try again. |
Ok - finally got some time to fix the permissions and was able to start and stop plex server from docker container manually. I assume the script is set to run 4AM local time, do I need to prepare the plex servers before the sync happens? I have backed up the main plex library that is running on Ubuntu 18.04, anything else I need to worry about? |
Close but no cigar...now db access issues:
|
I am not sure if its possible or not but I would like to setup a backup server in docker and bare metal as my primary. Any example that would be great in the wiki section.
The text was updated successfully, but these errors were encountered: