meskyanichi/backup — Issue #288: Invalid byte sequence in UTF-8 (in file name)
Author: mlarocque
Created: 2012-02-29 14:07:50+00:00
State: open

I'm syncing files on our server to S3 successfully. However, one particular directory - uploads (where people upload a variety of documents) - fails with the following:

2012/02/29 06:58:10][message] Generating checksums for /storage/data/uploads
[2012/02/29 06:58:15][error] ModelError: Backup for Backup to S3 (cnbc_s3_backup) Failed!
[2012/02/29 06:58:15][error] An Error occured which has caused this Backup to abort before completion.
[2012/02/29 06:58:15][error] Reason: ArgumentError
[2012/02/29 06:58:15][error] invalid byte sequence in UTF-8
[2012/02/29 06:58:15][error]
[2012/02/29 06:58:15][error] Backtrace:
[2012/02/29 06:58:15][error] /home/mlarocque/.rvm/gems/ruby-1.9.3-p125/gems/backup-3.0.23/lib/backup/syncer/cloud.rb:101:in `split'
[2012/02/29 06:58:15][error] /home/mlarocque/.rvm/gems/ruby-1.9.3-p125/gems/backup-3.0.23/lib/backup/syncer/cloud.rb:101:in `local_files'
[2012/02/29 06:58:15][error] /home/mlarocque/.rvm/gems/ruby-1.9.3-p125/gems/backup-3.0.23/lib/backup/syncer/cloud.rb:93:in `all_file_names'

It appears that one or more of the filenames has characters which backup doesn't like.

Any ideas?