# Rclone sync file extension for in progress

**URL:** <https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854>\
**Category:** Feature\
**Created:** [March 22, 2022, 9:02am UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854 "2022-03-22T09:02:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![paramehdic](https://forum.rclone.org/user_avatar/forum.rclone.org/paramehdic/32/11757_2.png) [@paramehdic](https://forum.rclone.org/u/paramehdic)\
**Post date:** [March 22, 2022, 9:02am UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/1 "2022-03-22T09:02:21Z")

</div>

Would be great to have the ability to enable a sync file extension or adding an in progress flag of some sort to files that are currently being synced to alert other programs to not process such a file.

Other sync software uses !sync, lftp-pget-status, part, bts, !qb as examples.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [March 22, 2022, 11:15am UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/2 "2022-03-22T11:15:33Z")

</div>

That would not make a lot of sense for cloud remotes as you'd be incurring extra API hits/calls to do something like that.

What's the problem you are facing? Can you provide an example?

---

<div class="post-metadata">

**Author:** ![paramehdic](https://forum.rclone.org/user_avatar/forum.rclone.org/paramehdic/32/11757_2.png) [@paramehdic](https://forum.rclone.org/u/paramehdic)\
**Post date:** [March 22, 2022, 11:55am UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/3 "2022-03-22T11:55:58Z")

</div>

Medusa (or similar forks, Sickchil, Sickrage etc) post processing TV show content before rclone sync has fully completed.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [March 22, 2022, 12:10pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/4 "2022-03-22T12:10:39Z")

</div>

That's just a process issue.

sync to a temp location and move it once it's done.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [March 22, 2022, 4:44pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/5 "2022-03-22T16:44:47Z")

</div>

Rclone could also be syncing to a temporary name say `yourfile.HEXNUMBERS.tmp` then rename it into `yourfile.mpg` at the end. Would that work for you?

That is what rsync does and there are some advantages to doing that.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [March 22, 2022, 5:05pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/6 "2022-03-22T17:05:11Z")

</div>

That adds extra API hits for providers that care about it, it's a very massive change to make and I'm not a fan of adding more overhead to a very clean process.

---

<div class="post-metadata">

**Author:** ![paramehdic](https://forum.rclone.org/user_avatar/forum.rclone.org/paramehdic/32/11757_2.png) [@paramehdic](https://forum.rclone.org/u/paramehdic)\
**Post date:** [March 22, 2022, 5:05pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/7 "2022-03-22T17:05:21Z")

</div>

Yes that would be great, anything so I can indicate that if .tmp exists it will ignore and postpone

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [March 22, 2022, 5:13pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/8 "2022-03-22T17:13:18Z")

</div>

> [@paramehdic](#):
>
> that if .tmp exists it will ignore and postpone

maybe this is too simple for your use case, but to exclude `*.tmp`, can use a filter.  
for example,  
`rclone ls D:\test\tmp --exclude=*.tmp`

for some providers, api calls are not a problem.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [March 23, 2022, 12:07pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/9 "2022-03-23T12:07:12Z")

</div>

> [@Animosity022](#):
>
> That adds extra API hits for providers that care about it, it's a very massive change to make and I'm not a fan of adding more overhead to a very clean process

I should have said, that would only be for backends that can upload partial files, like `local`, `ftp`, and `sftp` - the others wouldn't change as there is no point as you said.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [March 23, 2022, 12:31pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/10 "2022-03-23T12:31:03Z")

</div>

No complaints from me then.

Thanks for clarifying!

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [May 22, 2022, 12:31pm UTC](https://forum.rclone.org/t/rclone-sync-file-extension-for-in-progress/29854/11 "2022-05-22T12:31:18Z")

</div>

Closed on May 22, 2022, 12:31pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
