# backup file name and path - Copy module

**URL:** <https://forum.ansible.com/t/backup-file-name-and-path-copy-module/28175>\
**Category:** Ansible Project\
**Created:** [July 27, 2018, 8:14am UTC](https://forum.ansible.com/t/backup-file-name-and-path-copy-module/28175 "2018-07-27T08:14:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balaji1](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Post date:** [July 27, 2018, 8:14am UTC](https://forum.ansible.com/t/backup-file-name-and-path-copy-module/28175/1 "2018-07-27T08:14:43Z")

</div>

Hello All,

Sorry to ask a silly question.

I am using copy module. "backup: true:

Question-  
Where is the backup file stored? default path?  
what is the name of the file?  
Any way to change the default backup path

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 28, 2018, 11:28am UTC](https://forum.ansible.com/t/backup-file-name-and-path-copy-module/28175/2 "2018-07-28T11:28:29Z")

</div>

> Hello All,
> 
> Sorry to ask a silly question.
> 
> I am using copy module. "backup: true:
> 
> Question-  
> Where is the backup file stored? default path?

It's stored in the same directory as the original file.

> what is the name of the file?

It's using this name scheme: basename.PID.YYYY-MM-DD@HH:MM:SS~

The exact name is returned from the copy module in the return value[1] backup\_file.

> Any way to change the default backup path

For the copy module I don't think so.

[1] [https://docs.ansible.com/ansible/latest/modules/copy\_module.html#return-values](https://docs.ansible.com/ansible/latest/modules/copy_module.html#return-values)
