# Add suffix to all files copied

**URL:** <https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151>\
**Category:** Feature\
**Created:** [February 19, 2025, 3:55pm UTC](https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151 "2025-02-19T15:55:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PStam](https://forum.rclone.org/letter_avatar_proxy/v4/letter/p/46a35a/32.png) [@PStam](https://forum.rclone.org/u/PStam)\
**Post date:** [February 19, 2025, 3:55pm UTC](https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151/1 "2025-02-19T15:55:17Z")

</div>

Hi, we use copy and move to transfer files to Azure Datalake or Sharepoint.  
We want to add something in the suffix on the destination.  
So for example, if there are files on the source location named:  
File1.txt --\> on destination: File1\_ABCD.txt  
File2.txt --\> on destination: File2\_ABCD.txt  
File3.txt --\> on destination: File3\_ABCD.txt  
...  
we try to use --suffix ABCD and --suffix-keep-extension, which only works when files allready exist on the destination with the names:  
File1.txt  
File2.txt  
File3.txt

But we want this for all the files, even if they don't exist on the destination.  
Any suggestions? Is there a flag for this?

Kind regards,

Peter

---

<div class="post-metadata">

**Author:** ![jwink3101](https://forum.rclone.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@jwink3101](https://forum.rclone.org/u/jwink3101)\
**Post date:** [February 19, 2025, 5:23pm UTC](https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151/2 "2025-02-19T17:23:15Z")

</div>

> Is there a flag for this?

There is not. I ran into the same thing when thinking about my rclone-based backup tool [dfb](https://github.com/Jwink3101/dfb) which adds the upload date to all files--though it tries to do it before the extensions(s).

I ended up just scripting it. Originally with `copyto` statements but they were slow because it reauthorized each call. I eventually moved to using the rc API.

You could create a feature request. I can't imagine it is too hard for someone comfortable with both go and the rclone codebase (I am neither. I am a hobby Python developer).

---

<div class="post-metadata">

**Author:** ![nielash](https://forum.rclone.org/user_avatar/forum.rclone.org/nielash/32/16050_2.png) [@nielash](https://forum.rclone.org/u/nielash)\
**Post date:** [February 19, 2025, 5:49pm UTC](https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151/3 "2025-02-19T17:49:43Z")

</div>

If you're interested in trying something experimental, I made a [proof-of-concept for a `rclone convmv` command](https://github.com/rclone/rclone/issues/8393#issuecomment-2659988613) that could help with this (by renaming the files at the destination). It has [`--replace`](https://github.com/nielash/rclone/blob/1d6be937035854dba5a8f58a320fb8b3826755a0/docs/content/commands/rclone_convmv.md?plain=1#L203C7-L203C16) and [`--suffix`](https://github.com/nielash/rclone/blob/1d6be937035854dba5a8f58a320fb8b3826755a0/docs/content/commands/rclone_convmv.md?plain=1#L204) modes.

---

<div class="post-metadata">

**Author:** ![PStam](https://forum.rclone.org/letter_avatar_proxy/v4/letter/p/46a35a/32.png) [@PStam](https://forum.rclone.org/u/PStam)\
**Post date:** [February 20, 2025, 12:15pm UTC](https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151/4 "2025-02-20T12:15:54Z")

</div>

Thanks, we will try this

---

<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:** [April 21, 2025, 12:16pm UTC](https://forum.rclone.org/t/add-suffix-to-all-files-copied/50151/5 "2025-04-21T12:16:34Z")

</div>

Closed on April 21, 2025, 12:16pm UTC

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