[Box Backup-commit] #56: Windows: User can polute restore directory by adding a trailing backslash to the restore destination

Box Backup boxbackup-dev@boxbackup.org
Fri, 07 Aug 2009 10:09:14 -0000


#56: Windows: User can polute restore directory by adding a trailing backslash
to the restore destination
-------------------+--------------------------------------------------------
 Reporter:  achim  |        Type:  defect          
   Status:  new    |    Priority:  minor           
Milestone:         |   Component:  bbackupquery    
  Version:  trunk  |    Keywords:  windows, restore
-------------------+--------------------------------------------------------
 query > ls[[BR]]

 {{{
 00000002 -d---- BACKUPTEST[[BR]]
 query > restore BACKUPTEST d:\RESTORE[[BR]]
 WARNING: Failed to open file: d:\RESTORE.boxbackupresume: Acceso
 denegado.(5)[[BR]]
 WARNING: Exception thrown: CommonException(OSFileOpenError) at
 FileStream.cpp(84)[[BR]]
 ERROR:   Failed to save resume info file
 'd:\RESTORE.boxbackupresume':[[BR]]
 Common OSFileOpenError (Can't  open a file -- attempted to load a
 non-existant config file or bad file referenced within?)[[BR]]
 ERROR:   Unknown error during restore.[[BR]]

 }}}
 [[BR]]
 BUT the directory does get created (confirmed on the file system):[[BR]]
 [[BR]]

 {{{
 query > restore BACKUPTEST d:\RESTORE\[[BR]]
 ERROR:   The target directory exists. You cannot restore over an existing
 directory.[[BR]]

 }}}
 [[BR]]

 after manually deleting it and adding a trailing slash to the restore
 destination, it works:[[BR]]


 {{{
 query > restore BACKUPTEST d:\restore\
 .......................................................................

 }}}


 With the trailing backslash Box Backup generates
 d:\RESTORE\.boxbackupresume and
 without it it tries to generate d:\RESTORE.boxbackupresume?

 I have a feeling that this is a workaround that results in the resume
 file being created in the restored directory, which may not be
 desirable.

-- 
Ticket URL: <https://www.boxbackup.org/trac/ticket/56>
Box Backup <http://www.boxbackup.org/>
An open source, completely automatic on-line backup system for UNIX.