Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 737 Bytes

2018-01-09-avoid-rsyncing-thumb-db.md

File metadata and controls

30 lines (21 loc) · 737 Bytes
title author date url thumbnail categories tags
Avoid rsyncing thumb.db
svennd
2018-01-09 10:07:26 +0000
/avoid-rsyncing-thumb-db/
/img/2021/03/simon-stratford-_ILkd7aVqAM-unsplash.jpg
Linux
SysAdmin
rsync

If your sync is syncing a bunch of thumb.db files from windows cause someone opened the directory, you can easely remove it from the sync :

rsync -avhn --exclude 'Thumbs.db' source destination

note : I added -n for copy/paste mistakes 🙂

if you got plenty of file types/extensions you want ignored/excluded use :

rsync -avhn --exclude-from '/opt/exclude_rsync_list.txt' source destination

an example of this file could be :

.DS_Store
Thumbs.db

happy syncing.