Reflashing to a new version of Volumio, or clearing the user data can be a little frustrating, especially if you have lots of playlists or web radio stations etc. It’s actually quite simple to save your data, and restore it after a new flash, but it occurred to me that possibly some people were unfamiliar with the archiving program ‘tar.’
The following is NOT official, and is carried out entirely at your own risk.
It is possible, even likely, that a future Volumio update will change the way it’s configuration is saved, and in this case this method may not work. At the worst, you may need to reflash your card again, and configure it the original way through the UI.
Start a terminal session (either through ssh) or directly with a keyboard and monitor.
Type the following at the command prompt:
sudo tar -zcvf volumio_data.tgz /data
which will produce a compressed file ‘volumio_data.tgz’ of your configuration data.
- Copy your backup file ‘volumio_data.tgz’ to your destination of choice using one of the following options:
- transfer the file to your host PC via putty if using Windows;
- use ‘scp’ to directly transfer the file to your host device if you are using Linux or a Mac;
- copy the file to ‘/mnt/INTERNAL’ and access it as a Samba share;
- copy the file to ‘/mnt/USB’ if you have an attached USB flash drive.
- Restore your data by copying your data file back onto a newly flashed device, and running:
sudo tar -zxvf volumio_data.tgz -C /
You will still need to reinstall your plugins, but their settings should be intact.
You may need to switch the i2s toggle off in ‘Playback Options’ and save, before turning it on again. This should force Volumio to write your DAC information to the /boot/config.txt file.
It’s pretty straighforward to encapulate the above into a script, which makes life even easier. You could also filter what you back up, so that for example you only backed up playlists, radio streams & custom backgrounds … this backup could then be restored on any Volumio device you may have, irrespective of DAC type.
I’m sure that we would all like an official save/restore data function in Volumio … even a community written plugin … but, in the meantime, the above method saves me lots of time (and patience) on my multiple image reflashes.