Hi, I'm having problem using cwrsync to backup my data to an external drive as no data can't be opened on other computers because of permissions cwrsync sets.
This is my backup batch script:
@ECHO OFF
SET RSYNC=D:\Software\Portable\Rsync\bin\rsync.exe
SET ARGS=-rltShv --delete --chmod=ugo=rwX
SET EXCLUDES=--exclude-from="/cygdrive/d/Software/Portable/Rsync/excludes.txt"
for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set date=%%k%%j%%i
SET LOG=--log-file="/cygdrive/d/Software/Portable/Rsync/logs/%date%.log"
SET BACKUP=%RSYNC% %ARGS% %EXCLUDES% %LOG%
%BACKUP% "/cygdrive/d/" "/cygdrive/h/D/"
%BACKUP% "/cygdrive/e/" "/cygdrive/h/E/"
%BACKUP% "/cygdrive/f/" "/cygdrive/h/F/"
My fstab:
none /cygdrive cygdrive binary,posix=0,user,noacl 0 0
These are permissions I get:
http://i.imgur.com/5goUjXh.png
All are emtpy for all users hence inability to open them elsewhere.
Can anyone help, please?
This thing is quite annoying and all GUI apps i tried sucked and this is what i want to work with
Make sure that your fstab file is located at d:\software\protable\rsync, and try to remove
--chmod=ugo=rwX
from your rsync command.
I'm afraid that this suggestion didn't have any impact on permissions.. :(
This has also been discussed at superuser.com . The problem was an etc/fstab file with no line ending.