Bacula-users

Re: [Bacula-users] Restore Script - directory

2016-08-09 09:12:16
Subject: Re: [Bacula-users] Restore Script - directory
From: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
To: Jan Gazda <Jan.Gazda AT sapienzaconsulting DOT com>
Date: Tue, 9 Aug 2016 15:11:09 +0200
Hello,

2016-08-08 11:39 GMT+02:00 Jan Gazda <Jan.Gazda AT sapienzaconsulting DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>