[Dirvish] Dirvish backing up Windows 2003, but having troubles
viewing backups in Samba (perm/ownership)
wessner at iuw.h-da.de
Wed Jun 21 06:21:25 UTC 2006
maybe the rsync option --chmod is interesting for you?
There is also an interesting chapter in the cygwin docs
about the differences between Unix and Win permission
structure, also concerning file permissions:
I currently have a similar problem with the dirvish backup
I recently implemented for backing up my home PC (Win).
I back it up to a Debian box, and set up a webserver on
that Debian box to browse the backups, but the user running
the webserver is not allowed to read all files in the backup.
Of course this is some kind of different situation, because
in this scenario there is only one user (me) and it would be
easy to just chmod all files to o+r, although I haven't tried
this --chmod rsync option yet.
> Hello All
> I went though the archives.. and did not find the solution to my current problem. I have dirvish (dirvish-1.2.1) installed on a Gentoo file server. It's currently doing backups for many linux boxes.. and is working great! Now, of course.. to a throw wrench in the works, I'm backing up a Winows 2003 server on the local network. I was successful installing a rsync daemon on the win box, and dirvish is pulling files fine from that server. The network/systems in this business are windows-centric, with the exception of a few Linux boxes for file storage. My backups are backing up windows file shares (just normal data.. no worries on 'lock' files, etc). We would like to give users the ability to browse and grab files from the backup server. I have samba installed on that box.. and again, everything is working fine with that. The problem is related to file permissions on the windows backups.
> For instance on one partition that was backed up.. these were the permissions carried over from the windows filesystem.
> d--------- 9 root 513 4096 May 10 15:51 Clients
> d--------- 7 root 513 4096 Feb 15 09:51 Documents
> drwx------ 14 544 513 4096 Jun 15 14:09 Linux
> d--------- 13 root 513 4096 May 9 10:26 Standards
> -rwx------ 2 544 root 3072 Nov 10 2005 Thumbs.db
> Obviously, this will make it difficult to browse via samba. Almost all files/directories brought over from Windows has these permissions. Now, I could cron something which will convert ownership and permissions on nightly images to make them accessible via Samba.. but that will 'change' the local file, causing dirvish to bring new files over every time.. eating my disc. Currently, the only solution I currently have is to SSH into the box and copy the file and change permissions to make it readable to the original user. I know you can 'restore' with rsync, but I would like to avoid this. I want to maintain 'read-only' on the windows side of things. Also, users will my need several copies (versions) of the same file... and they need to browse through the images.
> Now my questions are....
> Does anyone else run into this similar problem?
> Does anyone have a clever fix (maybe rsync option or samba configuration) to avoid this?
> Thanks in advance. I'd appreciate any comments/suggestions.
> Dirvish mailing list
> Dirvish at dirvish.org
More information about the Dirvish