0

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:

enter image description here

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

dzhi
  • 117

2 Answers2

0

One word, Robocopy.

I tried numerous things but none seemed to work so I gave up eventually.

This is default Windows tool and has similar (for this purpose, the same) feature set.

I discovered it last night and ditched rsync completely. It's built for unix-like's so some sort of bummer is expected on Windows.

This got me started:

http://www.sevenforums.com/tutorials/187346-robocopy-create-backup-script.html

Here's the little backup script I made for myself to mirror my partitions to external drive.

Don't look back for rsync on Windows anymore!

dzhi
  • 117
0

This problem was answered at Can't figure out permissions. Shortly, there is no need to use options --chmod=ugo=rwX, and you need to make sure that fstab is located at etc directory - Check a related Itefix FAQ for more information. Anyway, if Robocopy works for you, then no problem actually :-)

itefix
  • 31