Hello,
2016-08-08 11:39 GMT+02:00 Jan Gazda <jan.ga...@sapienzaconsulting.com>:
> Hello all,
>
>
>
> I’m new to bacula Version: 5.2.13 and we are running and I’m trying to
> make an automatic restore script to test the backup.
>
>
>
> But I have a problems how to pass the directory to the bacula “restore”
> command.
>
What directory you need to put to restore command?
> I also had problem with markdir – which marked directory and restored the
> empty directory without files.
>
And it is expected behavior, see manual:
markdir mark directory name to be restored (no files)
If you want files just use a simple mark command:
mark mark dir/file to be restored recursively in dirs
> So for my script I have made workaround
>
>
>
> Where I do
>
> ----restorescript—
>
>
>
> bconsole << END_OF_DATA
>
> cd /directory/to/be/restored
>
Before cd above it should be an invocation of the restore command wirh all
required parameters. It could be a reason why this script is not working.
> mark *
>
> done
>
> yes
>
> wait
>
> messages
>
> END_OF_DATA
>
> -----
>
> Is there any better way how to pass the directory to the restore command?
> I only know that it can load the file list from text file.
>
>
I think you should just read the manual about restore command.
best regards
Radek
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users