From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24686 invoked by alias); 11 Aug 2010 17:09:13 -0000 Received: (qmail 24672 invoked by uid 22791); 11 Aug 2010 17:09:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_RW,TW_WX,TW_XR,TW_XV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f171.google.com (HELO mail-qy0-f171.google.com) (209.85.216.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Aug 2010 17:09:05 +0000 Received: by qyk34 with SMTP id 34so5435288qyk.2 for ; Wed, 11 Aug 2010 10:09:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.1.201 with SMTP id 9mr5639096qcg.145.1281546543122; Wed, 11 Aug 2010 10:09:03 -0700 (PDT) Received: by 10.229.212.18 with HTTP; Wed, 11 Aug 2010 10:09:03 -0700 (PDT) Date: Wed, 11 Aug 2010 17:09:00 -0000 Message-ID: Subject: tar permission errors when copying directories to a server From: Mirko Vukovic To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-08/txt/msg00260.txt.bz2 Hello, I use tar to backup my files to a server using a command > tar cf - . --exclude-from=./.backup-exclude | (cd "$dest_dir"; tar xvf -) > "$log_file" After finally upgrading to 1.7, I started getting the following errors: tar: ./dir-name1: Cannot change mode to rwx-w--w-: Permission denied tar: ./dir-name2: Cannot change mode to rwx-w--w-: Permission denied tar: .: Cannot change mode to rwxrw-rw-: Permission denied tar: Exiting with failure status due to previous errors tar exited with error status 1 on Wed Aug 11 12:56:39 EDT 2010 Irrespective of these errors, tar does copy all the files. The problem is that I use the exit status to check whether the backup succeeded or not and whether to reset the time-stamp file. So, the error status is important to me. I tried the same script to copy files from one location to another on my machine, and it works without errors. I am guessing that the problem has something to do with permissions on the server. How would I go about fixing those? Thank you, Mirko -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple