file names with white spaces & restore using CLI

Hi,

It seems that "backintime --restore" commandline interface cannot handle file names with white spaces. I tried to enclose the file name (1) within double quotes, (2) single quotes, (3) using backslash escape without quotes. None of them seemed to work. Is this a known bug?

Thanks,
Kodanda

PS: Attached is the console output FYI.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
kodanda@dellxps17:~$ backintime --profile-id 1 --restore /home/kodanda/temp/TestBITsrc/Mixture/nam\ koda.pdf /home/kodanda/ 20150320-183937-290

Back In Time
Version: 1.1.4

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

Invalid SnaphotID index: /home/kodanda/
SnapshotID's:
   0: 20150320-183937-290 1: 20150319-115002-371 2: 20150319-113002-471 3: 20150319-111757-618

SnapshotID to restore ( 0 - 3 ): 0

INFO: Restore: /home/kodanda/temp/TestBITsrc/Mixture/nam to: /home/kodanda/koda.pdf
rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r -R -v --chmod=Du=rwx,Fu=rX,go= --backup --suffix=.backup.20150323 "/home/kodanda/temp/TestBITbkp/backintime/dellxps17/kodanda/1/20150320-183937-290/backup/home/kodanda/temp/TestBITsrc/Mixture/./nam" "/home/kodanda/koda.pdf/"

rsync: link_stat "/home/kodanda/temp/TestBITbkp/backintime/dellxps17/kodanda/1/20150320-183937-290/backup/home/kodanda/temp/TestBITsrc/Mixture/nam" failed: No such file or directory (2)
building file list ... done
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
sent 16 bytes received 12 bytes 56.00 bytes/sec
total size is 0 speedup is 0.00
WARNING: Command "rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r -R -v --chmod=Du=rwx,Fu=rX,go= --backup --suffix=.backup.20150323 "/home/kodanda/temp/TestBITbkp/backintime/dellxps17/kodanda/1/20150320-183937-290/backup/home/kodanda/temp/TestBITsrc/Mixture/./nam" "/home/kodanda/koda.pdf/"" returns 5888

INFO: Restore permissions

Restore permissions:

Log saved to /home/kodanda/.local/share/backintime/restore_.log
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

kodanda@dellxps17:~$ backintime --profile-id 1 --restore "/home/kodanda/temp/TestBITsrc/Mixture/nam koda.pdf" /home/kodanda/ 20150320-183937-290

Back In Time
Version: 1.1.4

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

Invalid SnaphotID index: /home/kodanda/
SnapshotID's:
   0: 20150320-183937-290 1: 20150319-115002-371 2: 20150319-113002-471 3: 20150319-111757-618

SnapshotID to restore ( 0 - 3 ): 0

INFO: Restore: /home/kodanda/temp/TestBITsrc/Mixture/nam to: /home/kodanda/koda.pdf
rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r -R -v --chmod=Du=rwx,Fu=rX,go= --backup --suffix=.backup.20150323 "/home/kodanda/temp/TestBITbkp/backintime/dellxps17/kodanda/1/20150320-183937-290/backup/home/kodanda/temp/TestBITsrc/Mixture/./nam" "/home/kodanda/koda.pdf/"

rsync: link_stat "/home/kodanda/temp/TestBITbkp/backintime/dellxps17/kodanda/1/20150320-183937-290/backup/home/kodanda/temp/TestBITsrc/Mixture/nam" failed: No such file or directory (2)
building file list ... done
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
sent 16 bytes received 12 bytes 56.00 bytes/sec
total size is 0 speedup is 0.00
WARNING: Command "rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r -R -v --chmod=Du=rwx,Fu=rX,go= --backup --suffix=.backup.20150323 "/home/kodanda/temp/TestBITbkp/backintime/dellxps17/kodanda/1/20150320-183937-290/backup/home/kodanda/temp/TestBITsrc/Mixture/./nam" "/home/kodanda/koda.pdf/"" returns 5888

INFO: Restore permissions

Restore permissions:

Log saved to /home/kodanda/.local/share/backintime/restore_.log
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Question information

Language:
English Edit question
Status:
Answered
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

Thanks for reporting. I can confirm this and created a bug report out of this.

Can you help with this problem?

Provide an answer of your own, or ask మంగిపూడి కోదండరామ్ (Mangipudi Kodanda Ram) for more information if necessary.

To post a message you must log in.