Kayser-Sosa 2 Posted September 9, 2019 Posted September 9, 2019 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?
Kayser-Sosa 2 Posted September 9, 2019 Author Posted September 9, 2019 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.
Luke 39004 Posted September 10, 2019 Posted September 10, 2019 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?
Kayser-Sosa 2 Posted September 10, 2019 Author Posted September 10, 2019 Now they are attached. Emby Logs.zip
Luke 39004 Posted October 2, 2019 Posted October 2, 2019 @@Kayser-Sosa, apologies for the delayed response, but copying raw .db files is not always recommended. did you just end up starting fresh?
Kayser-Sosa 2 Posted October 2, 2019 Author Posted October 2, 2019 (edited) 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 October 2, 2019 by Kayser-Sosa
Luke 39004 Posted October 3, 2019 Posted October 3, 2019 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?
Kayser-Sosa 2 Posted October 7, 2019 Author Posted October 7, 2019 @@Happy2Play From my understanding above, is there something I missed or did out of order?
Happy2Play 9229 Posted October 11, 2019 Posted October 11, 2019 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.
Luke 39004 Posted October 19, 2019 Posted October 19, 2019 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.
Kayser-Sosa 2 Posted October 19, 2019 Author Posted October 19, 2019 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now