Menu

How do you specify a remote path with spaces in it?

2014-09-04
2014-09-19
  • Gary Czychi

    Gary Czychi - 2014-09-04

    Hi,

    I have a directory "Manual Backup" on a remote unix machine user@host.ip.

    Using scp, I can specify the correct path when using a double backslash in front of the space character:
    scp x.txt user@host.ip:"/share/Manual\\ Backup/Images/Clonezilla"

    However, this doesn't work in Clonezilla. Using this directory path fails:
    "/share/Manual\\ Backup/Images/Clonezilla"

    It starts to copy, but apparently it writes everything into the ram disk (without displaying an error). Only after the copy process has begun, Clonezilla hangs at 2%, saying the disk is full.

    So, is it possible to specify a remote directory name that has spaces in it?

    Thanks a lot!

    Gary

     

    Last edit: Gary Czychi 2014-09-04
  • Steven Shiau

    Steven Shiau - 2014-09-05

    Using this directory path fails:
    "/share/Manual\ Backup/Images/Clonezilla" -> What's our full command about this?

    Steven.

     
  • Gary Czychi

    Gary Czychi - 2014-09-06

    Oh, I'm using the Clonezilla beginners interface. It's the screen, where you need to type the remote directory path (using ssh method).

     
  • Steven Shiau

    Steven Shiau - 2014-09-19

    Actually you just type it, for example
    My dir on my ssh server is:
    /home/steven/tmp/my dir
    Then when asked by the prep-ocsroot, I just type:
    /home/steven/tmp/my dir
    Then it shows me:
    ======================
    Mounting sshfs by:
    sshfs "steven"@192.168.120.254:"/home/steven/tmp/my dir/" /home/partimag -p 22 -o nonempty,noatime
    steven@192.168.120.254's password:
    ======================
    And after entering my password, it is successfully mounted:
    The file system disk space usage
    ***********.
    Filesystem Size Used Avail Use% Mounted on
    overlayfs 998M 7.3M 991M 1% /
    proc 0 0 0 - /proc
    sysfs 0 0 0 - /sys
    udev 988M 4.0K 988M 1% /dev
    devpts 0 0 0 - /dev/pts
    tmpfs 200M 568K 199M 1% /run
    /dev/sr0 167M 167M 0 100% /lib/live/mount/medium
    /dev/loop0 126M 126M 0 100% /lib/live/mount/rootfs/filesystem.squashfs
    tmpfs 998M 0 998M 0% /lib/live/mount/overlay
    none 4.0K 0 4.0K 0% /sys/fs/cgroup
    none 0 0 0 - /sys/fs/fuse/connections
    none 0 0 0 - /sys/kernel/debug
    none 0 0 0 - /sys/kernel/security
    none 5.0M 0 5.0M 0% /run/lock
    none 998M 0 998M 0% /run/shm
    none 100M 0 100M 0% /run/user
    none 0 0 0 - /sys/fs/pstore
    rpc_pipefs 0 0 0 - /run/rpc_pipefs
    steven@192.168.120.254:/home/steven/tmp/my dir/ 3.7T 1.7T 2.1T 45% /home/partimag

    Steven.

     

Log in to post a comment.

MongoDB Logo MongoDB