LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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: 81

Rep: Reputation: 15
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: Debian "Jessie"
Posts: 6,017

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


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
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


All times are GMT -5. The time now is 04:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration