failed to restore file names with white spaces using CLI

Bug #1435602 reported by Germar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Back In Time
Fix Released
High
Germar

Bug Description

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
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Germar (germar)
Changed in backintime:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.1.6
Germar (germar)
Changed in backintime:
status: Triaged → Fix Committed
assignee: nobody → Germar (germar)
Germar (germar)
Changed in backintime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.