# \--exclude-globs doesn't work in sync

**URL:** <https://community.wandb.ai/t/exclude-globs-doesnt-work-in-sync/3899>\
**Category:** W&B Help\
**Created:** [February 17, 2023, 1:30am UTC](https://community.wandb.ai/t/exclude-globs-doesnt-work-in-sync/3899 "2023-02-17T01:30:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geyao](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geyao](https://community.wandb.ai/u/geyao)\
**Post date:** [February 17, 2023, 1:30am UTC](https://community.wandb.ai/t/exclude-globs-doesnt-work-in-sync/3899/1 "2023-02-17T01:30:06Z")

</div>

I use the command to sync offline-run:

```shell
wandb sync --exclude-globs "**/*.npy" --sync-all

```

However, the \*.npy files are still uploaded. The path of these files are in wandb/run\_id/files/array . Is the way I use --exclude-globs incorrect?

---

<div class="post-metadata">

**Author:** ![geyao](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geyao](https://community.wandb.ai/u/geyao)\
**Post date:** [February 17, 2023, 2:17am UTC](https://community.wandb.ai/t/exclude-globs-doesnt-work-in-sync/3899/2 "2023-02-17T02:17:51Z")

</div>

Find the same question here

> <https://github.com/wandb/wandb/issues/3454>
>
> Hi, I want to exclude some large files, such as \`\*.pt\`, when uploading an offlin…e training directory to W&B. I've tried the command lines \`wandb sync --exclude-globs \\\*.pt offline-run-xxx\` and \`wandb sync --exclude-globs "\*.pt" offline-run-xxx\`, but they doesn't seem to work. May I ask how to use the \`--exclude-globs\` option properly?

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [February 17, 2023, 8:29pm UTC](https://community.wandb.ai/t/exclude-globs-doesnt-work-in-sync/3899/3 "2023-02-17T20:29:09Z")

</div>

Hello Yao!

Looks like you got the solution for your question, which is great! Is there anything else that you need?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [April 18, 2023, 2:17am UTC](https://community.wandb.ai/t/exclude-globs-doesnt-work-in-sync/3899/4 "2023-04-18T02:17:56Z")

</div>

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