# Set backup date format for Ansible template module

**URL:** <https://forum.ansible.com/t/set-backup-date-format-for-ansible-template-module/24514>\
**Category:** Ansible Developer\
**Created:** [May 18, 2017, 2:38pm UTC](https://forum.ansible.com/t/set-backup-date-format-for-ansible-template-module/24514 "2017-05-18T14:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok\_Chauhan](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Ashok\_Chauhan](https://forum.ansible.com/u/Ashok_Chauhan)\
**Post date:** [May 18, 2017, 2:38pm UTC](https://forum.ansible.com/t/set-backup-date-format-for-ansible-template-module/24514/1 "2017-05-18T14:38:41Z")

</div>

How do you change the date format for files that Ansible’s template module creates when you use the `backup` option?

For example, the command:

`template: src=supervisord.conf.j2 dest=/etc/supervisor/supervisord.conf backup=yes`

creates a backup file: `supervisord.conf.2015-08-24@12:17~`

I’d like it to be something like: `supervisord.conf.20150824_1217`
