[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't translate pathname
Hi,
On Wed, Jan 6, 2010 at 09:59, Michael Stevens <mstevens@etla.org> wrote:
> tarsnap: /usr/share/doc/console-tools/examples/♪♬: Can't translate pathname '/usr/share/doc/console-tools/examples/♪♬' to UTF-8
Make sure you run tarsnap with an UTF-8 locale. E.g. crond might be
running in an environment with the locale variables not set, even if
they’re set in your shell environment.
The cron entry I personally use, for instance:
30 3 * * * root /usr/bin/rsnapshot daily && >/dev/null
LANG=fi_FI.UTF-8 /usr/local/sbin/tarsnap-periodical -p
/home/.snapshots/daily.0 -l 850000000 -n 7
The important part is LANG=fi_FI.UTF-8 tarsnap ... Replace fi_FI.UTF-8
with whatever locale you have generated and are using, en_GB.UTF-8
probably.
(LC_CTYPE is probably the one that matters with tarsnap, but might as
well just set LANG for completeness.)
Regards,
--
Jοhan Kiviniemi http://johan.kiviniemi.name/