>>>>> On Thu, 6 Sep 2018 11:54:09 +0100, Adam Weremczuk said:
> 
> On 06/09/18 09:21, Adam Weremczuk wrote:
> 
> > For backups  > 65 days < 2 years I can use "restore" command and 
> > regular expressions to perform searches. 
> Attempted just now:
> 
> (...)
> 
> Do you want to restore all the files? (yes|no): no
> 
> Regexp matching files to restore? (empty to abort): ^/var/log/auth.log
> Bootstrap records written to /var/lib/bacula/backup_dir.restore.4.bsr
> 
> The job will require the following
>     Volume(s)                 Storage(s)                SD Device(s)
> ===========================================================================
> 
>      LTO-R20160504A            backup_sd_lto             Quantum LTO-4 HH
> 
> Volumes marked with "*" are online.
> 
> 
> 3,040,903 files selected to be restored.
> 
> Run Restore job
> JobName:         restore
> Bootstrap:       /var/lib/bacula/backup_dir.restore.4.bsr
> Where:           /var/tmp/bacula-restores
> Replace:         always
> FileSet:         backup_fileset
> Backup Client:   backup_fd
> Restore Client:  backup_fd
> Storage:         backup_sd_lto
> When:            2018-09-06 11:49:03
> Catalog:         backup_catalog
> Priority:        10
> Plugin Options:  *None*
> 
> (...)
> 
> 3 million files, not one?
> What am I doing wrong?

Nothing is wrong -- the regexp is used during the restore to choose which
files to extract.  It has to scan the whole backup to do this, so it selects
all files.

__Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to