Webradios backup and restore

General discussion about RuneAudio. Do not post any support or feature requests here.

Webradios backup and restore

Postby technosf » 13 Apr 2017, 07:30

I've read a few enquiries on this subject as I update RA images, so I thought I would share my solution. It works like this:

  1. Backup Webradios folder and redis hash to samba accessible directory
  2. Copy from source RAS via Samba to destination RAS
  3. Restore redis hash
  4. Turn on MPD autorefresh
  5. Restore Webradios directory
  6. Clean up

You will need a control computer to SSH into each RAS and copy the files via Samba. We will use the LocalStorage folder for copying files.

Backing Up
ssh into the Source RAS
Code: Select all
cd /mnt/MPD/LocalStorage
tar -czvf wr.tgz ../Webradio
redis-cli --raw dump webradios | head -c-1 > wr.dmp


Copy the control computer copy the files from the Source RAS LocalStorage Samba share to the Destination RAS LocalStorage Samba share. Ensure that MPD source autorefresh is enabled on the Destination RAS.

Restore
ssh into the Destination RAS
Code: Select all
cd /mnt/MPD
cat LocalStorage/wr.dmp | redis-cli -x restore webradios 0
tar -xzvf LocalStorage/wr.tgz
rm LocalStorage/wr.dmp LocalStorage/wr.tgz


Thats it!
technosf
 
Posts: 8
Joined: 12 Apr 2017, 18:17

Re: Webradios backup and restore

Postby hondagx35 » 13 Apr 2017, 09:30

Hi technosf,

thank you for sharing this.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 4 guests