Exactly what I needed.

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

________________________________________
From: Bill Arlofski via Bacula-users [bacula-users@lists.sourceforge.net]
Sent: Tuesday, July 19, 2022 10:30 AM
To: bacula-users@lists.sourceforge.net
Subject: [External Email] Re: [Bacula-users] restore options (yesterday, last 
week, last month)

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


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

Reply via email to