...
You can use the Archiving utility (Configuration > System > Import / Export / Archiving) but this is a manual process. How to do this automatically at regular intervals?
...
The second item in the table shows the Template, the third one shows the result.
This is the configuration of the Template in detail: