[arch-general] Rsync not handling spaces in directory names
I'm unable to get rsync to handle a particular directory which contains spaces within its name. Here's the command I run and the output: [jordan@archpc Program Files]$ rsync -rve 'ssh -p 2222' Steam archlap:/mnt/media/larissa-wine/drive_c/Program\ Files jordan@archlap's password: sending incremental file list created directory /mnt/media/larissa-wine/drive_c/Program Steam/ Steam/AppUpdateStats.blob Steam/CSERHelper.dll Steam/ClientRegistry.blob Steam/GameOverlayRenderer.dll Steam/GameOverlayRenderer.log Steam/GameOverlayUI.exe Steam/GameValidation.log Steam/Steam.dll Steam/Steam.exe Steam/SteamUI.dll Steam/SteamUI_1289.mst Steam/Steam_61.mst Steam/Support.url Steam/ThirdPartyLegalNotices.doc Steam/WriteMiniDump.exe Steam/dbghelp.dll Steam/mss32_s.dll Steam/steam.ico Steam/steam.log Steam/steam_1289_assert_2010_7_6T17_13_2C0.mdmp Steam/steam_1289_assert_2010_7_8T16_47_28C0.mdmp ^CKilled by signal 2. rsync error: unexplained error (code 255) at rsync.c(543) [sender=3.0.7] I killed the program before it continued, It created a directory on the destinations with the name "Program" when it should have sync'd the Steam folder within the "Program Files" directory. Here's the output of ls -l in the destination directory parent: [jordan@archlap drive_c]$ ls -l total 1572 drwxr-xr-x 3 jordan users 4096 Jul 10 13:26 Program drwxrwxr-- 6 larissa users 4096 Jul 10 12:55 Program Files -rwxrwxr-x 1 larissa users 1588224 Jun 16 17:42 SteamInstall.msi drwxrwxr-x 4 larissa users 4096 Jun 16 17:27 users drwxrwxr-x 14 larissa users 4096 Jun 19 21:08 windows drwxrwxr-x 2 larissa users 4096 Jun 16 23:49 winetrickstmp [jordan@archlap drive_c]$ The jordan users is part of the "users" group and has the correct permission. Thanks!
On Sat, Jul 10, 2010 at 7:01 AM, Jordan Windsor <jordanw2@gmail.com> wrote:
I'm unable to get rsync to handle a particular directory which contains spaces within its name. Here's the command I run and the output:
[jordan@archpc Program Files]$ rsync -rve 'ssh -p 2222' Steam archlap:/mnt/media/larissa-wine/drive_c/Program\ Files
The way the space is escaped there at the end probably needs some tweaking. Note that the space is escaped in the current shell, and rsync receives 'archlap:/mnt/media/larissa-wine/drive_c/Program Files' as the last argument. I'm not sure how it's handled after this point, but either of the following ways should work: 1) archlap:/mnt/media/larissa-wine/drive_c/Program\\\ Files 2) archlap:'/mnt/media/larissa-wine/drive_c/Program\ Files'
On Sat, Jul 10, 2010 at 1:59 PM, Evangelos Foutras <foutrelis@gmail.com> wrote:
On Sat, Jul 10, 2010 at 7:01 AM, Jordan Windsor <jordanw2@gmail.com> wrote:
I'm unable to get rsync to handle a particular directory which contains spaces within its name. Here's the command I run and the output:
[jordan@archpc Program Files]$ rsync -rve 'ssh -p 2222' Steam archlap:/mnt/media/larissa-wine/drive_c/Program\ Files
The way the space is escaped there at the end probably needs some tweaking. Note that the space is escaped in the current shell, and rsync receives 'archlap:/mnt/media/larissa-wine/drive_c/Program Files' as the last argument. I'm not sure how it's handled after this point, but either of the following ways should work:
1) archlap:/mnt/media/larissa-wine/drive_c/Program\\\ Files 2) archlap:'/mnt/media/larissa-wine/drive_c/Program\ Files'
Thank you, It's working now.
participants (2)
-
Evangelos Foutras
-
Jordan Windsor