X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "H.S." Subject: Re: permission denied while deleting the local copy of rsynced data Date: Sat, 03 Dec 2005 22:32:42 -0500 Lines: 61 Message-ID: References: <43925577 DOT B8FDB0AC AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 In-Reply-To: <43925577.B8FDB0AC@dessent.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Brian Dessent wrote: > "H.S." wrote: > > >>rsync: send_files failed to open "/cygdrive/c/Documents and >>Settings/winuser/NTUSER.DAT": Device or resource busy (16) > > > That is your HKCU hive. It is opened by the system in exclusive mode, > and no other process can read or write it. The purpose being that if > you want to access the registry, you go through the registry API. For > instance, each registry key can have an ACL, so it's possible to create > a registry key that is only readable by a particular user. But if > processes could just read the hive data on disk it would completely > bypass that security. > > So you can't back up the registry that way, but that doesn't matter > because there are much better ways. For example "reg export HKCU > file.reg" and then backup file.reg. > > Brian > That was a nice explanation. So, since I am in the processes of backing up the Windows XP box, I do not think I need to back up the registry and I can exclude the registry enteries, if I can find a rule (file pattern) to do so. So far, I have this in my excludes file: ################################################################ #do not back up some temp file and other IE stuff - Temporary Internet Files - Temp/ - History.IE5 # do not back up Recent docs in Windows - Recent/ - *[Cc]ache* - *[Tt]rash* - Local Settings - Start Menu - Documents and Settings/*/Cookies #do not include any temporary files, swap files, etc - *~ - *.swp #specify the directories to be backedup + /cygdrive/c/Documents and Settings/sahambi/Application Data/Mozilla + *Application*/Mozilla/ + *Application*/Thunderbird # ################################################################ Is there another rule that I can include in the file above and my registry hive will not be backed up? And, also, should I be backing up the registry hive or not in the first place? thanks, ->HS -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/