# Backup of files

**URL:** <https://forum.ansible.com/t/backup-of-files/24870>\
**Category:** Ansible Project\
**Created:** [July 1, 2017, 3:07pm UTC](https://forum.ansible.com/t/backup-of-files/24870 "2017-07-01T15:07:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Mahajan](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Mohit\_Mahajan](https://forum.ansible.com/u/Mohit_Mahajan)\
**Post date:** [July 1, 2017, 3:07pm UTC](https://forum.ansible.com/t/backup-of-files/24870/1 "2017-07-01T15:07:51Z")

</div>

How to take backup before editing in the file, **without changing time-stamp** of the file. I used “backup=yes” but the problem is that it changed the time-stamp.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 3, 2017, 2:02pm UTC](https://forum.ansible.com/t/backup-of-files/24870/2 "2017-07-03T14:02:32Z")

</div>

The timestamp you get is of the time of backup, that is just how they work.

You can create your own backup task (copy module) and then force the  
timestamps to be the same (you can do this with the touch command).
