LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2010, 08:47 AM   #1
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 108

Rep: Reputation: 16
rsync behaves differently under cron and under my normal environment


Hello, *

I am making a backup on an ntfs disk, mounted with:

# mount -t ntfs-3g \
-o utf8,quiet,shortname=winnt /dev/disk/by-label/Elements /mnt/tmp

using the following command:
*/usr/local/bin/rsync -rltDh --no-group --no-owner --delete *--modify-window=1 -stats */museum/ /mnt/tmp/backup/museum

Running this (or rather the shell script containing it) from the command line is OK, but if I run it as a cron job, I get thousands of messages:

rsync: recv_generator: failed to stat "/mnt/tmp/backup/museum/mail/ingridmens/mail/inbox.sbd/kerkstraa
t.sbd/offic\#303\#253le stukken": Invalid or incomplete multibyte or wide character (84)

(without line breaks, actually).

These files are all ordinary files made under Windows; the above should read "officiële stukken", and from the command line it does, but not in cron.

I guess I need to set an environment variable, but which one?
 
Old 03-16-2010, 08:55 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I guess I need to set an environment variable, but which one?
Maybe your $LANG because you are mounting with utf8?
Mine: LANG=en_GB.UTF-8
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rsync works differently under tcsh than bash? Vanyel Linux - Software 2 09-01-2009 09:55 AM
is this normal rsync behaviour? nass Slackware 5 05-03-2007 01:40 PM
why java panels behaves differently in linux and solaris ?? alred Programming 2 07-20-2006 02:21 AM
applet on linux server behaves differently naijaguy Programming 3 01-07-2005 02:09 PM
shell behaves differently in rl5 and rl3 Warmduvet Linux - General 22 09-22-2004 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration