Freebsd-users digest, Vol 1 #2133 - 4 msgs

Jason Cornock jason at theinfra-red.com
Fri Dec 8 12:15:54 GMT 2006


Hi and thanks Dom,

This is running from /etc/crontab run by root...the same user I use when
running manually,would this be an issue ? I'll give it a go and see when run
from my own crontab though.


Regarding using tar..yup that's what I have done and works fine now..BUT
would still like to see where/why rsync is failing as its still bugging me.
 
A typical readout from the rsync run:

rsync: failed to set times on "/mnt/fn-colo-nas-0/var/named/etc/namedb": Bad
file descriptor (9)

Cheers,

Jason.


> From: <freebsd-users-request at uk.freebsd.org>
> Reply-To: <freebsd-users at uk.freebsd.org>
> Date: Fri, 08 Dec 2006 12:00:02 +0000
> To: <freebsd-users at uk.freebsd.org>
> Subject: Freebsd-users digest, Vol 1 #2133 - 4 msgs
> 
> Send Freebsd-users mailing list submissions to
> freebsd-users at uk.freebsd.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users
> or, via email, send a message with subject or body 'help' to
> freebsd-users-request at uk.freebsd.org
> 
> You can reach the person managing the list at
> freebsd-users-admin at uk.freebsd.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Freebsd-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Rsync not copying contents of sub directories(recursive) when run
>        from a cron job (Jason Cornock)
>    2. Re: Rsync not copying contents of sub directories(recursive) when
>        run from a cron job (Dominic Marks)
> 
> --__--__--
> 
> Message: 1
> Date: Thu, 07 Dec 2006 12:21:54 +0000
> Subject: Rsync not copying contents of sub directories(recursive) when run
>  from a cron job
> From: Jason Cornock <jason at theinfra-red.com>
> To: "freebsd-users at uk.freebsd.org" <freebsd-users at uk.freebsd.org>
> 
> Rsync not copying contents of sub directories(recursive) when run from a
> cron job=20
> 
> Hi,
> 
> I have a problem with rsync-2.6.8_2 where if I run the task manually all th=
> e
> folders and sub folders/files are copied across but when I run the exact
> same command from a cron job it fails to copy recursively, i.e I will get
> the folders but not the files within.
> 
> I am copying from the local system drive to a NAS running SMB/CIFS.
> 
> Rsync command used:  rsync  -rlpgoDv --delete $source/
> $TARGET/$BACKUP_DATE/$source/.
> 
> I am not us the =ADa flag because I am getting bad file descriptor errors
> failing to time stamp the files(if anybody knows a solution to this too tha=
> t
> would be marvellous!).
> 
> Any help or guidance much appreciated.
> 
> Jason
> 
> 
> 
> 
> --__--__--
> 
> Message: 2
> Date: Thu, 7 Dec 2006 13:04:35 +0000
> From: Dominic Marks <dom at helenmarks.co.uk>
> To: freebsd-users at uk.freebsd.org
> Subject: Re: Rsync not copying contents of sub directories(recursive) when
>  run from a cron job
> 
> On Thu, 07 Dec 2006 12:21:54 +0000
> Jason Cornock <jason at theinfra-red.com> wrote:
> 
>> Rsync not copying contents of sub directories(recursive) when run
>> from a cron job=20
>> =20
>> Hi,
>> =20
>> I have a problem with rsync-2.6.8_2 where if I run the task manually
>> all the folders and sub folders/files are copied across but when I
>> run the exact same command from a cron job it fails to copy
>> recursively, i.e I will get the folders but not the files within.
> 
> This is your own crontab, right? Otherwise it could be permissions.
> 
>> I am copying from the local system drive to a NAS running SMB/CIFS.
>> =20
>> Rsync command used:  rsync  -rlpgoDv --delete $source/
>> $TARGET/$BACKUP_DATE/$source/.
>> =20
>> I am not us the =ADa flag because I am getting bad file descriptor
>> errors failing to time stamp the files(if anybody knows a solution to
>> this too that would be marvellous!).
> 
> I wonder if CIFS has the same set of timestamps which your local file
> system has. If it doesn't and network bandwidth is not a problem you
> could tar up the data and copy it to avoid that. There is a probably a
> way through it with rsync alone though.
> 
> A bad file descriptor message seems like a strange an error for failing
> to set a timestamp to me.
> 
>> Any help or guidance much appreciated.
>> =20
>> Jason
>> =20
> 
> Dom
> 
> 
> 
> --__--__--
> 
> ------ FreeBSD UK User's Group  -  Mailing List ------
> http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users
> 
> End of Freebsd-users Digest
> 






More information about the Ukfreebsd mailing list