Hi Tommie,
as you wrote, you can use the get-configuration rpc, adding the format=text attribute:
<get-configuration format="text">
Another (perhaps easier) way to get a backup of the configuration database (and also of the output of any useful operational command) is through an event-policy and a time-based event.
You can configure your device in order to generate an event every month:
[edit event-options]
event-options {
generate-event {
every-month time-interval 2592000;
}
}
Then you can write an event-policy which will match the event, will launch the command "show configuration | no-more", and will save the output into a file, appending a timestamp to the saved file:
[edit event-options]
policy save-configuration-every-month {
events every-month;
then {
execute-commands {
commands {
"show configuration | no-more";
}
output-filename config_backup;
output-format text;
}}}
This is just an hint, I hope it helps!
Mattia