Moode Forum
[SOLVED] Backup & restore through ansible - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] Backup & restore through ansible (/showthread.php?tid=4612)



Backup & restore through ansible - tanki - 12-18-2021

Hi!

I use Ansible to customize my moode setup (mainly bash aliases and lirc configuration) and it has worked pretty well so far.
I was wondering if it could be possible to manage backup and restore through it?
As I understand everything is done through php scripts calls, hence it might be doable through curl if I'm not mistaken.
Any ideas as to what might be done to get backup and restore work through ansible uri module ?

Thanks in advance for your answers


RE: Backup & restore through ansible - TheOldPresbyope - 12-18-2021

(12-18-2021, 08:11 AM)tanki Wrote: Hi!

I use Ansible to customize my moode setup (mainly bash aliases and lirc configuration) and it has worked pretty well so far.
I was wondering if it could be possible to manage backup and restore through it?
As I understand everything is done through php scripts calls, hence it might be doable through curl if I'm not mistaken.
Any ideas as to what might be done to get backup and restore work through ansible uri module ?

Thanks in advance for your answers

"Back up and restore" mean different things to different people.

In so far as moOde configuration settings are concerned, have a look at the nice moodeutl command-line utility, notably its -e and -i options.

Regards,
Kent


RE: Backup & restore through ansible - Tim Curtis - 12-18-2021

Backup/Restore is also available on System Config.

[attachment=2650] [attachment=2651] [attachment=2652]


RE: Backup & restore through ansible - tanki - 12-19-2021

(12-18-2021, 12:17 PM)TheOldPresbyope Wrote:
(12-18-2021, 08:11 AM)tanki Wrote: Hi!

I use Ansible to customize my moode setup (mainly bash aliases and lirc configuration) and it has worked pretty well so far.
I was wondering if it could be possible to manage backup and restore through it?
As I understand everything is done through php scripts calls, hence it might be doable through curl if I'm not mistaken.
Any ideas as to what might be done to get backup and restore work through ansible uri module ?

Thanks in advance for your answers

"Back up and restore" mean different things to different people.

In so far as moOde configuration settings are concerned, have a look at the nice moodeutl command-line utility, notably its -e and -i options.

Regards,
Kent

Oooooh that's nice, didn't know I could use moodeutl to backup or restore, I was planning on analysing the backup/restore html form's source code to find a way to do this with Ansible
Geez, everyday I learn something new, it keeps getting better and better

Kudos to the devs!!!