How to use rsync when filenames contain double quotes?

Walrus Foolhill walrus.foolhill at gmail.com
Sat Jan 29 17:15:22 MST 2011


Thanks for your answer. I am using rsync version 3.0.7 protocol 30 on Ubuntu
10.04 Lynx Lucid to synchronize the content of my Samsung laptop with an
external hard-drive from Western Digital. Both hard-drives don't seem to
have the same filesystem type (ext3 versus vfat): can it be due to this?
Should I reformat my external hard-drive in ext3?

$ rsync --version
rsync  version 3.0.7  protocol version 30

$ df -h -T
Sys. fich.    Type    Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1     ext3    178G   69G  101G  41% /
none      devtmpfs   1002M  328K 1002M   1% /dev
none         tmpfs   1007M  1,6M 1005M   1% /dev/shm
none         tmpfs   1007M   88K 1006M   1% /var/run
none         tmpfs   1007M     0 1007M   0% /var/lock
none         tmpfs   1007M     0 1007M   0% /lib/init/rw
none       debugfs    178G   69G  101G  41% /var/lib/ureadahead/debugfs
/dev/sdb1     vfat     75G   55G   21G  73% /media/DISK_TOTO

$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/toto/.gvfs type fuse.gvfs-fuse-daemon
(rw,nosuid,nodev,user=toto)
/dev/sdb1 on /media/DISK_TOTO type vfat
(rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)

$ fsck -N /home/
fsck de util-linux-ng 2.17.2
[/sbin/fsck.ext2 (1) -- /home] fsck.ext2 /home

$ fsck -N /media/DISK_TOTO/Backup/
fsck de util-linux-ng 2.17.2
[/sbin/fsck.ext2 (1) -- /media/DISK_TOTO/Backup] fsck.ext2
/media/DISK_TOTO/Backup

2011/1/29 Scott Wiersdorf <scott at ipartner.net>

> On Sat, Jan 29, 2011 at 11:48:27AM +0100, Walrus Foolhill wrote:
> > I am trying to synchronize the content of the directory my_dir/ from
> /home
> > to /backup. This directory contains a file which name has a double quote
> in
> > it, such as to"to. Here is my rsync command:
> >
> > rync -Cazh /home/my_dir/ /backup/my_dir/
>
> "rsync"
>
> > And I get the following message:
> >
> > rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument
> (22)
>
> For what it's worth, using your command and filename (to"to) both work
> fine for me on OS X (both rsync v2.6.9 and v3.0.7), FreeBSD 4.7 (rsync
> v2.6.9), and Linux 2.6.18 (rsync v3.0.7) and going between them. Can
> you give more information on your system, rsync version, etc.?
>
> Scott
> --
> Scott Wiersdorf
> scott at ipartner.net
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20110130/3748473b/attachment.html>


More information about the rsync mailing list