Re: [Hampshire] Rsync question

Top Page

Reply to this message
Author: Tim
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Rsync question
On Monday 23 June 2008 22:21:01 Tim wrote:
> On Monday 23 June 2008 22:10:56 Tony Whitmore wrote:
> > Tim wrote:
> > > The drive is mounted by me as a user and has full read write access,
> > > the command is run by me as a user. Here is the corresponding line in
> > > my fstab file (its listed in the dynamic section)
> > >
> > > /dev/sdc1 /mnt/sdc1 ext3 noauto,users,exec 0 0
> >
> > OK, my next best guess is that your target filesystem is full then.
>
> Not with 307gb of free space :)
>
> > > The files I mentioned with the odd ending, these are not viewable
> > > anywhere, they are only listed when rsync runs.
> >
> > Do they show up in the output of "ls -la" ?
>
> No
>
> > > Should I run fsck on sdc1 to see if it picks up any odd files?? if so
> > > what is the best options??
> >
> > The chances are those files were legitimately created by an rsync
> > process which didn't complete for some reason. I doubt a fsck will do
> > anything with them. The best bet would be to delete them using the
> > delete option including hidden files.
> >
> > Tony
>
> OK will try tomorrow, have an early start tomorrow so want to get some
> early shut eye
>
> Tim


I tried running the following rsync command

mit@titan:~$
rsync -av --exclude=/mnt/sdb1/zunk/ --delete --ignore-errors --log-file=/mnt/sdb1/rsync_log /mnt/sdb1/ /mnt/sdc1/backups/

(sorry if it wraps)

using the --ignore-errors which according to the man pages say

"delete even if there are I/O errors"

Which there were showing up in the kog from last night. This failed with more
errors stating that it could not because it was a read only file system
(which as far as I can tell it is not)

A quick ls -l of the backup folder on sdc1 shows

mit@titan:/mnt/sdc1/backups$ ls -l
total 60
drwxr-xr-x 33 mit users 4096 Jun 22 23:56 Pictures
drwxr-xr-x 13 mit users 4096 May 24 22:43 Video
drwxr-xr-x 19 mit users 4096 Jun 23 21:05 Zunk
drwxr-xr-x 5 mit users 4096 Dec 25 22:31 film
drwxr-xr-x 332 mit users 28672 Jun 14 05:31 mp3
-rwxr-xr-x 1 mit users 13270 Jun 23 20:51 rsync_log

A quick ls -l of zunk shows
-rwxr-xr-x 1 mit users      19968 Dec  1  2006 64 Mount Road.doc
-rwxr-xr-x 1 mit users      19456 Oct 19  2006 Application.doc
-rwxr-xr-x 1 mit users      35328 Aug 30  2006 August 2006  newsletter-3.doc
-rwxr-xr-x 1 mit users  129937300 Oct 12  2006 BPKstudlandflexiwallop2.wmv
drwxr-xr-x 2 mit users       4096 Feb  3 13:34 Backup Batch
drwxr-xr-x 3 mit users       4096 Feb  3  2007 BrightSide
-rwxr-xr-x 1 mit users      20992 Nov  1  2006 Customer Adviser Questions.doc
-rwxr-xr-x 1 mit users   21660065 May  5  2007 Eastbourne Extreme.wmv
-rwxr-xr-x 1 mit users       2165 Feb 10  2007 Elijah pic.jpg
drwxr-xr-x 2 mit users       4096 May 31  2006 FlexiWallop 2 May 06
-rwxr-xr-x 1 mit users     740640 May 25 16:30 HarrysFilters3.zip
-rwxr-xr-x 1 mit users      24576 Oct 30  2006 Jobs applied for.doc
-rwxr-xr-x 1 mit users      98892 Jun 23 16:30 Just married!.jpg
-rwxr-xr-x 1 mit users     479110 Jun 23 16:51 Just married!v2.jpg
-rwxr-xr-x 1 mit users      19456 Jan  9  2007 Mortgage cheque.doc
drwxr-xr-x 2 mit users       4096 Jan  9  2007 Tim CV
drwxr-xr-x 5 mit users       4096 Feb 10  2007 West Howe


<snip, the list is longer but the permissions are the same alway through>

Any further thoughts

Tim

____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google TalkT and most webmails