Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: How to recover the database files by pi/moodeaudio, without the password of root?
#5
(02-22-2020, 11:35 AM)vinnn Wrote:
(02-22-2020, 07:56 AM)godt2p4 Wrote:
(02-21-2020, 11:20 AM)vinnn Wrote: Transfer files to pi's home directory as the pi user
SSH into your Pi and mv the files as the root user using sudo, e.g.

Code:
sudo mv somefile /some/destination

It they're mpd files you'll also need to change ownership back to the mpd user, e.g...
Code:
sudo chown -R mpd:audio /var/lib/mpd

Thanks, Vinnn.

You mean I should upload the files into pi's folder at first, and


Code:
sudo mv database /var/lib/mpd/database -f

sudo mv libcache.json /var/local/www/libcache.json -f

sudo chown -R mpd:audio /var/lib/mpd


Correct?

Yes but you don't need the -f option and you put it in the wrong place anyway.
Command options generally go after the command, not after the arguments.

Thanks Vinnn.

I tried, but it seems that this kind of recovery action is only workable in the same Moode version or same Moode equipment, as I tried to recover the database from Rock64 in Moode 5.2 into Pi3B in Moode 6.4.2 and failed.

Boom.
Reply


Messages In This Thread
RE: How to recover the database files by pi/moodeaudio, without the password of root? - by godt2p4 - 02-22-2020, 11:59 PM

Forum Jump: