Hey folks!
Is it possible to sync only the folders without the subfolders or files?
I already tried different exclude phrases, but didn’t get it to work.
Thank you for your help!
Sync only folders
- Posts: 4
- Joined: 31 Mar 2022
- Site Admin
- Posts: 7212
- Joined: 9 Dec 2007
https://freefilesync.org/manual.php?topic=exclude-files
Exclude:
Exclude:
All subdirectories of the base directories *\
- Posts: 4
- Joined: 31 Mar 2022
That didn't work for me.https://freefilesync.org/manual.php?topic=exclude-files
Exclude:Zenju, 31 Mar 2022, 11:31All subdirectories of the base directories *\
I want the following:
==> Source Folder Example
- Folder 1
/File 1.txt
/Folder 1.1/File 2.pdf
/Folder 1.2
- Folder 2
/File 3.png
/Folder 2.1/File 4
- File 5.pdf
- File 6.png
- Folder 1
- Folder 2
*\
- File 5.pdf
- File 6.png
- Posts: 4059
- Joined: 11 Jun 2019
So you don't want any files to sync? Just the directory names?
- Posts: 4
- Joined: 31 Mar 2022
Exactly!
- Posts: 16
- Joined: 10 Jun 2019
You can try the following: Xcopy with the /T switch
/T Creates directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
Not tested by me.
/T Creates directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
Not tested by me.
- Posts: 4
- Joined: 31 Mar 2022
Can I trigger this on folder creation?You can try the following: Xcopy with the /T switch
/T Creates directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
Not tested by me. Backitup, 22 Jun 2022, 17:53
- Posts: 4059
- Joined: 11 Jun 2019
You could use RTS to monitor the directory and run that command upon any changes.
- Site Admin
- Posts: 7212
- Joined: 9 Dec 2007
Use ?*\?* as exclude filter to get rid of items in sub folders.I want the following:
==> Source Folder Example==> Sync Folder- Folder 1
/File 1.txt
/Folder 1.1/File 2.pdf
/Folder 1.2
- Folder 2
/File 3.png
/Folder 2.1/File 4
- File 5.pdf
- File 6.png
svnkn, 31 Mar 2022, 11:43- Folder 1
- Folder 2
?* means "one or more" characters.
To get rid of the files in base folders, you can use an include filter of ?*\ (folders only) or an exclude filter of *: (files only, requires FreeFileSync 11.24).
See (updated): https://freefilesync.org/manual.php?topic=exclude-files