Re: [Bacula-users] restore options (yesterday, last week, last month)

2022-07-19 Thread Josip Deanovic

On 2022-07-19 19:00, Clouse, Raymond [JT4 LLC] wrote:

Can Bacula restore files based on date?  That is, can I specify I want
file.txt from yesterday, or from last week, or from last month?  Is
there a way to set up backups to preserve files in this manner?


Hi Raymond

Yes it can.
Of course, you will have to perform backup on a daily basis.

Here is the relevant documentation:
https://www.bacula.org/11.0.x-manuals/en/main/Restore_Command.html


Regards!

--
Josip Deanovic


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] restore options (yesterday, last week, last month)

2022-07-19 Thread Bill Arlofski via Bacula-users

On 7/19/22 11:00, Clouse, Raymond [JT4 LLC] wrote:

Can Bacula restore files based on date?  That is, can I specify I want file.txt 
from yesterday, or from last week, or from last month?  Is there a way to set 
up backups to preserve files in this manner?

--
Ray Clouse


Hello Ray,

Yes...

Set up a job with a Level = Incremental, then using a Schedule, override the 
Level with a Level=Full on (for example) the
first Sunday of the month and then don't override the level on the other days 
so they will all be Incremental.

Schedule {
  Name = MonthlyFull
  Run = Level=Full 1st sun at 23:00   # Override the Level to Full on 1st Sun
  Run = 2nd,3rd,4th,5th sun at 23:00  # Run Incrementals on all other Sundays
  Run = mon-sat at 23:00  # Run Incremental on all weekdays and 
Saturdays
}


Then, to restore a file(s) to a certain day, you can use the bconsole 'restore' 
command and choose option 6 "Select backup
for a client before a specified time"


Then pick the date/time you wish to restore to and Bacula will automatically 
select the correct Full + Incremental(s) needed
to build the file selection tree... Then you just navigate and choose the 
file(s) you want/need.

Take a look at the Job "Accurate = yes" feature too.  This feature keeps track 
of deleted files, so if you were to restore a
directory (for example) to a certain point in time, it would look exactly like 
it did on that day it was backed up - ie:
files that were deleted before the time of the backup date/time you are 
restoring to would not be restored.


Hope this helps.
Bill

--
Bill Arlofski
w...@protonmail.com


signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] restore options (yesterday, last week, last month)

2022-07-19 Thread Clouse, Raymond [JT4 LLC]
Can Bacula restore files based on date?  That is, can I specify I want file.txt 
from yesterday, or from last week, or from last month?  Is there a way to set 
up backups to preserve files in this manner?

--
Ray Clouse
System Administrator V, MCS Development
raymond.clo...@jt4llc.com
raymond.clouse@us.af.mil
661-277-6464 (office)
714-699-3176 (cell)


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users