How to backup user logons?

Need help? Post your questions here.

Moderator: moderators

How to backup user logons?

Postby HighCast » Thu Mar 31, 2011 7:37 am

In case I'm in need to change the machine for the Subsonic, how do I backup the current settings and user data?
Loosing the statistics is not an issue, but re-entering all of the users for the system is really not an option.
So..how to move this information to a new server instance? Copypasting the (stopped server) installation file folder do not help.
HighCast
 
Posts: 49
Joined: Tue Nov 16, 2010 7:43 am
Location: Finland

Postby bushman4 » Thu Mar 31, 2011 12:41 pm

The database information is stored in the Subsonic working directory in the "db" subfolder.

On Windows that is c:\Subsonic\db by default. Move that folder to your new installation and overwrite the files, and you should have your entire database moved over.

For a "quick and dirty" backup I often go to the db.view screen (http://your.server.ip.address:port/db.view) and type:
Code: Select all
Select * from user


I copy and paste the resultant table into excel and save it. Then, if I ever needed to use that data I could either build "INSERT" statements manually or with an excel text manipulation formula.

HTH,
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: How to backup user logons?

Postby c0urier » Sun Mar 03, 2013 3:11 pm

If you could show how to restore the users, it would be awesome.

This would work I guess.
INSERT INTO user(USERNAME, PASSWORD, BYTES_STREAMED, BYTES_DOWNLOADED, BYTES_UPLOADED, LDAP_AUTHENTICATED, EMAIL) VALUES(' ', ' ', ' ', ' ', ' ', ' ', ' ')
c0urier
 
Posts: 1
Joined: Thu Dec 06, 2012 4:52 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 9 guests