Jump to content

How to Restore Ubuntu Server Settings


Kayser-Sosa

Recommended Posts

Kayser-Sosa

Following the information from this link <https://github.com/MediaBrowser/Wiki/wiki/Backup> I am running into either some issues or questions.

 

I backed up the following folders from my old Emby server.

config

data

metadata

plugins

 

Following the guide I installed on the new server and copied the files in the same locations </var/lib/emby/...>

 

  • /ProgramData/config
  • /ProgramData/plugins
  • /ProgramData/data/collections
  • /ProgramData/data/displaypreferences.db
  • /ProgramData/data/users.db
  • /ProgramData/metadata
here is the command I used
sudo cp –a /home/<login username>/config/. /var/lib/emby/config
 
I had to use 
 
sudo chown –R emby:emby /folder name
sudo chmod –R 755 /folder name
 
to make sure some of the folders had the permissions needed as they were showing the local user

 

I start the server and my users I had created are not there, nor are any of my libraries

 

Going through the settings, some of the information appears to be in place.

 

Did I miss something, do something wrong?

 
Link to comment
Share on other sites

Kayser-Sosa

Update, noticed /data/displaypreferenences.db and /data/user.db either hadn't copied over or didnt update the rights or owner so I copied them over and updated.

 

Now the server wont even start.

Link to comment
Share on other sites

Update, noticed /data/displaypreferenences.db and /data/user.db either hadn't copied over or didnt update the rights or owner so I copied them over and updated.

 

Now the server wont even start.

 

Hi, is any server log generated?

Link to comment
Share on other sites

  • 4 weeks later...
Kayser-Sosa

Yeah, I just started from scratch.  I was trying to follow the manual restore instructions and did not have any luck.  Do you think you could go over them a bit more?

 

 

My understanding is as follows from the manual restore instructions.

 

Backup the following folders and files after the server instance is shutdown

  • /ProgramData/config
  • /ProgramData/plugins
  • /ProgramData/data/collections
  • /ProgramData/data/playlists
  • /ProgramData/data/displaypreferences.db
  • /ProgramData/data/userdata_v2.db (if present)
  • /ProgramData/data/users.db

 

Install Emby on the new server but when the wizard launches, do not complete it, just shutdown the server.

Copy all the files listed above to the same location on the new server.

Launch the new server and sign in and setup library paths.

Allow a scan to complete.

Using DB Browser, open the old library.db file, attached the new library.db file and then run REPLACE INTO NewDB.userdatas SELECT * FROM userdatas

 

 

Did all of this and didnt have any luck.  Nothing was restored.

Edited by Kayser-Sosa
Link to comment
Share on other sites

Yeah, I just started from scratch.  I was trying to follow the manual restore instructions and did not have any luck.  Do you think you could go over them a bit more?

 

 

My understanding is as follows from the manual restore instructions.

 

Backup the following folders and files after the server instance is shutdown

  • /ProgramData/config
  • /ProgramData/plugins
  • /ProgramData/data/collections
  • /ProgramData/data/playlists
  • /ProgramData/data/displaypreferences.db
  • /ProgramData/data/userdata_v2.db (if present)
  • /ProgramData/data/users.db

 

Install Emby on the new server but when the wizard launches, do not complete it, just shutdown the server.

Copy all the files listed above to the same location on the new server.

Launch the new server and sign in and setup library paths.

Allow a scan to complete.

Using DB Browser, open the old library.db file, attached the new library.db file and then run REPLACE INTO NewDB.userdatas SELECT * FROM userdatas

 

 

Did all of this and didnt have any luck.  Nothing was restored.

 

Sure, what question do you have?

Link to comment
Share on other sites

Happy2Play

Technically you should be able to move/copy the entire programdata to the new machine/install.  But you are dependant on media/library paths remaining the same.

 

I know I moved my install from my C drive to my Y drive without any issues.

 

 

@@Happy2Play From my understanding above, is there something I missed or did out of order?

 

I haven't tested this manually process in awhile since the plugin does this.  But depending on how old your installation is there can be database issues as a new install will have fewer userdata columns in a new database.

Link to comment
Share on other sites

Yea it could have been related to the age of the database files, age meaning how long it has been since they were originally created.

Link to comment
Share on other sites

Kayser-Sosa

The original was built on an Ubuntu 16.04 virtual server. I had upgraded the OS to 18. I'm sure that may have played a part to.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...