Mark Vossen's picture

Hi

I noticed an issue when trying to restore folders that contain spaces or accents.
The command line tklbam-restore help syntax explains:
 --limits="LIMIT-1 .. LIMIT-N"     Restore filesystem or database limitations
      LIMIT := -?( /path/to/include/or/exclude | mysql:database[/table] )
These parameters seems to work fine, unless the foldernames used contain special characters such as spaces or accents.
Restoring files from a folder that contains spaces in its foldername doesn't seem to work when specifying that foldername as a restore-point. TKLBAM doesn't restore any files. The logfile /var/log/tklbam-restore contains no warnings.
 
To simulate this problem, create a file in a folder called 'New Folder' in /data
Put a file in \data\New Folder and run a backup.
Next, try to restore that folder.
I tried this by entering:
tklbam-restore --skip-database --skip-packages --limits='/data/New Folder/' 8
where 8 is the ID of my backup.
No restore takes place. (also tested with extra \ tklbam-restore --skip-database --skip-packages --limits='/data/New\ Folder/' 8)
 
tklbam-restore --skip-database --skip-packages --limits='/data/New Folder/' 8
does work.
In the understanding that there is no option to restore to an alternate path, this means that a sysadmin neds to overwrite the entire /data folder to restore a single file in /data/New Folder ?
Please advise
Kind regards
Mark Vossen