Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-16-2010, 09:47 AM   #1
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, 09:55 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:55 AM
is this normal rsync behaviour? nass Slackware 5 05-03-2007 02:40 PM
why java panels behaves differently in linux and solaris ?? alred Programming 2 07-20-2006 03:21 AM
applet on linux server behaves differently naijaguy Programming 3 01-07-2005 03:09 PM
shell behaves differently in rl5 and rl3 Warmduvet Linux - General 22 09-22-2004 06:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 AM.

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