Skip to content

Instantly share code, notes, and snippets.

@bulentv
Last active January 15, 2019 10:54
Show Gist options
  • Save bulentv/4d58c79ce4514729b7111981a4d7d4b5 to your computer and use it in GitHub Desktop.
Save bulentv/4d58c79ce4514729b7111981a4d7d4b5 to your computer and use it in GitHub Desktop.

Windows'da belli bir patterne göre, dosyaları klasör yapısı korunarak kopyalama:

Kaynak dosyalar örneğin c:\Users\kullanici_adi\Desktop\kaynak_klasor içerisinde olsun. Hedef klasör de c:\Users\kullanici_adi\Desktop\hedef_klasor

http://www.aboutmyx.com/files/DeltaCopyRaw.zip zip içerisindeki dosyalar c:\rsync klasörüne açılır, sonra komut satırından (cmd.exe) :

c: (dosyaların bulunduğu sürücüye geçilir)
PATH=%PATH%;c:\rsync

cd c:\rsync
rsync.exe -rav --prune-empty-dirs --include="*.exe" --include="*/" --exclude="*" /Users/kullanici_adi/Desktop/kaynak_klasor /Users/kullanici_adi/Desktop/hedef_klasor
  • (*.exe yerine istenilen dosya paterni girilir)
  • Son satırdaki slash'lar düz slash /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment