# \[SOLVED\] Trim filenames

**URL:** https://discourse.beets.io/t/solved-trim-filenames/1094
**Category:** Help
**Created:** [February 4, 2020, 1:32pm UTC](https://discourse.beets.io/t/solved-trim-filenames/1094 "2020-02-04T13:32:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![techster](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@techster](https://discourse.beets.io/u/techster)
#### Post date: [February 4, 2020, 1:32pm UTC](https://discourse.beets.io/t/solved-trim-filenames/1094/1 "2020-02-04T13:32:26Z")

</div>

Hi,  
I use beet to organize my music collection, and am currently facing some issues. I’m trying to backup a part of my library to the cloud, and there are filename length restrictions for that (filename can’t be larger than 250 bytes). How do I instruct beet to rename all files (trim filenames) with filenames larger than 80 characters or so ( **without** changing the title of the music file)? Thanks.

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [February 4, 2020, 3:27pm UTC](https://discourse.beets.io/t/solved-trim-filenames/1094/2 "2020-02-04T15:27:37Z")

</div>

Hi! There is a [max\_filename\_length](https://beets.readthedocs.io/en/stable/reference/config.html#max-filename-length) config option. (You can then use `beet move` to update your filenames.)

---

<div class="post-metadata">

### Author: ![techster](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@techster](https://discourse.beets.io/u/techster)
#### Post date: [February 4, 2020, 5:08pm UTC](https://discourse.beets.io/t/solved-trim-filenames/1094/3 "2020-02-04T17:08:31Z")

</div>

Thanks, that works!
