Re: mv: permissions warning with samba mount
Hello
Derrick 'dman' Hudson (<dman@dman13.dyndns.org>) wrote:
> I have a shell script on one debian system here to back up certain
> portions of the filesystem. It simply tars up the directories and
> moves the tar file to a samba share which is backed up by some already
> in-place windows software.
>
> The problem is that mv is too noisy :
> mv: failed to preserve ownership for
> `/mnt/red1/Builds/cvsbackup/CVS-Backup-2004-01-21.tar.gz':
> Operation not permitted
>
> This is a problem because I then become conditioned to ignore emails
> from cron assuming they only contain this non-problem. However,
> sometimes there is a real problem and I need to know about it.
> Therefore, I want this particular error message to not be reported,
> however I want other errors (for example No space left on device) to
> go to stderr. When this script is run, stdout is sent to a log file
> and stderr (if any) is sent to me via mail.
>
> Any suggestions?
Wouldn't the easiest way be to set the ownership of the file to that of
the Samba mount before moving it?
best regards
Andreas Janssen
--
Andreas Janssen
andreas.janssen@bigfoot.com
PGP-Key-ID: 0xDC801674
Registered Linux User #267976
Reply to: