Hi everybody,
I’m trying to run automatic restore script for testing purposes with bacula.
And I’m not able to pass the directory into a bconsole restore command, I found the way how to pass the file there even list of files but not the specific directory:
Is it possible to change the “file” for the directory?
Thank you,
Jan
Example.sh:
fileToRestore=”/home/user/.bash_history”
logFile=log.txt
client_to_restore='myMachine'
client_where_restore=$client_to_restore
JobId=123
restoreDestination=”tmp/restored/”
bconsole <<END_OF_DATA
@output $logFile
restore client=$client_to_restore jobid=$JobId where=$restoreDestination restoreclient=$client_where_restore file=$fileToRestore done
yes
wait
messages
@output
quit
END_OF_DATA