I have a batch file I am trying to write which takes a copy of my repositories using emadmin copy. The destination path contains a space and I am striking out on how to make it work.
set BASE=C:\Users\rsargent\Documents\Instantiations\VA Smalltalk\
set BACKUPS=%BASE%TestBackup\
for %%R in (*.dat) do emadmin copy -p whatever -o "%%R" "%BACKUPS%%%R.backup"
I have tried variations such as trying to escape the space using ^, doubling the quotes around the destination path expression, and some other less sensible things.
I get the following:
Code page (ANSI): 1252
Connected to source server
Connected to destination server
Copying localhost:autotester.dat => localhost:C:\Users\rsargent\Documents\Instantiations\VA Smalltalk\TestBackup\autotester.dat.backup
Destination path invalid or inaccessible.
(I get the same thing when I try it from the command line rather than from the batch file.
e.g.
emadmin copy -p whatever "autotester.dat" "C:\Users\rsargent\Documents\Instantiations\VA Smalltalk\TestBackup\autotester.dat.backup"
)
Does anyone know how to make this work?