[kde-linux] Folders with all capital letters not copied

Nathan nathan at paysonlinux.org
Sun Nov 2 23:27:54 UTC 2008


> 
> #!/bin/bash -u
> # back-up home directory to a specific pendrive identified in /etc/fstab by its UUID
> 
> cd
> mount /media/pendrive
> rsync -Cvrtz --modify-window=1 /home/bruce/Documents /media/pendrive/
> rsync -Cvrtz --modify-window=1 /home/bruce/configs /media/pendrive/
> rsync -Cvrtz --modify-window=1 --exclude=**jar --exclude=blogbridge** --exclude=OmegaT** --exclude=bitext2tmx-1.0M0-080229** /home/bruce/bin /media/pendrive/
> rsync -Cvrtz --modify-window=1 /media/pendrive/Documents  /home/bruce/
> 
> cd ~/Documents
> find . -perm -0750 -and -not -type d -exec chmod 0644 {} \;
> umount /media/pendrive



What if instead of copying everything, you just create a tar file then move the tar file to the pendrive? When you extract the files you can preserve the attributes... Since you are using a script it should be painless.



More information about the kde-linux mailing list