# How I can add all files from on of many Source subfolders except empty folders?

**URL:** <https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861>\
**Category:** Support\
**Created:** [March 12, 2018, 7:58am UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861 "2018-03-12T07:58:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![avmaksimov](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@avmaksimov](https://forum.duplicati.com/u/avmaksimov)\
**Post date:** [March 12, 2018, 7:58am UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861/1 "2018-03-12T07:58:10Z")

</div>

I don’t want to duplicati create new backup if nothing changes.

---

<div class="post-metadata">

**Author:** ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)\
**Post date:** [March 12, 2018, 11:00am UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861/2 "2018-03-12T11:00:44Z")

</div>

If nothing is changed to your source since the last backup, a new backup version is never created, unless `--upload-unchanged-backups` is supplied. Default value for this option is `false`.

---

<div class="post-metadata">

**Author:** ![avmaksimov](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@avmaksimov](https://forum.duplicati.com/u/avmaksimov)\
**Post date:** [March 12, 2018, 12:11pm UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861/3 "2018-03-12T12:11:12Z")

</div>

Unfortenutely, no. I didn’t set this option but see this:

> Listing changes  
> 1: 10.03.2018 21:30:00  
> 0: 11.03.2018 21:30:00
> 
> Size of backup 1: 54,05 ГБ
> 
> 1 added entries:
> 
> - D:\SomeFolder\20180311\
> 
> 1 modified entries:  
> ~ D:\SomeFolder\
> 
> Added folders: 1  
> Modified folders: 1  
> Size of backup 0: 54,05 ГБ  
> Return code: 0

---

<div class="post-metadata">

**Author:** ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)\
**Post date:** [March 12, 2018, 12:43pm UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861/4 "2018-03-12T12:43:36Z")

</div>

Ah, I see. Creating a new directory is actually a change in your source, so a new backup version is created.  
As far as I know there is not a filter that can exclude empty directories.

If this is a one-off incident, you can delete backup version `1: 10.03.2018 21:30:00` manually, but I can’t think of any particular reason to do this. The allocated space at the remote end will probably just increase a few KB’s for the new version.

---

<div class="post-metadata">

**Author:** ![avmaksimov](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@avmaksimov](https://forum.duplicati.com/u/avmaksimov)\
**Post date:** [March 12, 2018, 9:09pm UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861/5 "2018-03-12T21:09:52Z")

</div>

backup size doesn’t matter but I don’t want to create new backup version due this. Of course, it’s not a great problem).

Ok, may be regex will help me.

---

<div class="post-metadata">

**Author:** ![avmaksimov](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@avmaksimov](https://forum.duplicati.com/u/avmaksimov)\
**Post date:** [March 13, 2018, 9:42am UTC](https://forum.duplicati.com/t/how-i-can-add-all-files-from-on-of-many-source-subfolders-except-empty-folders/2861/6 "2018-03-13T09:42:43Z")

</div>

I prefered to delete empty dir with before backup script).
