in this video we back up an azure file
share
[Music]
hello everyone i'm travis and this is
Ciraltos if you need a file share in
azure
azure file shares with smb support for
windows ad
and azure ad domain services is a good
alternative
to standing up a file server on your own
azure file share is a good option for fs
logic profiles
but whatever data you put out there odds
are it's important
azure storage accounts offer different
levels of resiliency
meaning that they keep a minimum of
three copies of data in a data center
with the option to distribute those
copies across different regions
but what if a file in the share becomes
corrupt azure resilience does not
provide any recoverability of previous
versions of files
that's what azure backup is for before
we get started please take a second to
subscribe like
and click the bell icon to get
notifications of new content
or when i try going live again azure
storage accounts have multiple
redundancy options including locally
redundant
zone redundant and geo-redundant options
these options spread copies of the data
across multiple systems
however if that data becomes corrupt
then the corruption is replicated to all
copies of the data
also if a user deletes a file or just
needs an older version of something they
saved
by default that data won't be available
to recover
older versions of files we need to put a
backup solution in place
azure backup has support for azure file
shares
built in backing up azure files with
azure backup is a snapshot based
solution
azure backup uses the file share api to
trigger and remove snapshots per the
schedule
it keeps the metadata about the backup
in the recovery services vault
but no data is transferred this makes
for a fast backup solution with built-in
alerting and reporting keep that point
in mind
azure backup manages the snapshots it
doesn't copy the data to the vault
in addition to snapshot based backups
when azure backups is enabled on a file
share
soft delete on the file share is also
enabled without soft delete
if a file share is deleted it's gone
with soft delete the share is
inaccessible when deleted
but recoverable within the retention
period by default that period is 14 days
this safeguards against the accidental
or malicious removal of a file share
this is a share level property
protecting the share and the files in it
but not the individual files in the
share that's what azure backup is for
in order to make this work we need to
first deploy an azure recovery services
vault
this has to be in the same location as
the data getting backed up
if you already have a recovery vault in
that region you can go ahead and use
that
then we add a file share to the vault
once that's in place we set up a backup
policy that determines when the share is
backed up
and how long the data will be kept the
minimum backup frequency is daily
retention policies can be applied to the
daily backup
weekly monthly and yearly backups as
well
let's jump into the lab and do a backup
and restore on an azure file share
here we are at the portal the first step
is to create a recovery services vault
this is the central point for backups in
azure you can skip this step if you
already have one and it's in the same
location as the items you're backing up
if not go to all services and search for
recovery services
i already have one but we'll create a
new one go to add new vault
this recovery services vault will have
its own resource group
i'll give mine the name temp rsv rg1
next give it a name temp rsv1
is what i'll use for my example and the
resource i'm backing up is in central us
i'll change my region to central us add
tags as needed and then review and
create
the deployment finish next let's go to
recovery services vault
select the vault we just created before
i add anything i'm going to go to
properties
and go to backup configurations and i'll
change this to local redundant
you can leave it as geo-redundant this
comes down to cost
i don't need the geo-redundancy in the
backup data and matter of fact
if we're just backing up snapshots on
the file share none of that data is
getting written to the recovery vault
anyway
the important thing to note is you can
only change this before you add an item
once i add a backup item this will be
locked and i can't make any changes
click save and close
next we'll go to backup and here we're
going to add the storage account
we'll leave the workload to azure and
select
azure file share and backup
now i'm going to select a storage
account
this is the storage account with a share
that i want to back up
i'll add my storage account now that the
storage account is added
i'll add a share the storage account
only has one share so i'll select that
click ok the next is my backup policy
we can select create a new policy here
we can change the backup policy name
the time and the time zone i'm going to
change this to central us
notice the default frequency for backups
is daily
daily is the minimum reoccurring
frequency of the backups
and i'll leave the retention to 30 days
notice we can set a different retention
policy for
weekly monthly and yearly we'll leave
those blank for this example
and click ok once finished enable the
backup
we'll give it a few seconds for the
backup to deploy
it looks like it finished let's go to
backup items and see if it's in there
here azure storage azure files is
showing one backup item
there's our share notice it shows a
warning because the initial backup is
pending
let's go into the backup item and click
backup now
we'll leave the retention period to 30
days and click ok
that will start the backup we can also
manage backups from the storage account
let's go into the storage account
go down to the file shares
and select the file share notice we have
a snapshots and backup option under
operations
go to snapshots there's the snapshot we
just created
from the snapshot you can navigate
through the files
and download or restore directly from
this interface
if we go back to the share go to backups
here we have some more options we can do
a file recovery
or restore the share let's go over to
the server and look at the share
here's the share mounted on the server
under test users we have this test
doc.txt
i'm going to delete that
now i'll go back to the portal and do a
file recovery
i'll select my restore point click
select
here i have the option to restore to the
original location or an alternate
location
that gives you the option to restore to
a different file share
i'm going to select original location
and in case of conflicts we have the
option to overwrite or skip
i'll leave that as overwrite and add a
file
here we can navigate to the file select
and then click ok and restore
we'll give that a minute to run let's go
back to that computer and see if it's
there
it's going to all users there it is the
file we deleted
is back that didn't take long at all
let's go back to the portal there's one
more item i want to go over
let's go back to the storage account and
under file shares there's a soft delete
option
this is enabled by default when the
storage account is added to the recovery
services vault
here we can disable it or we can change
the retention period
this gives us the ability to restore the
entire share if the share is
accidentally deleted
that's how you backup and restore files
on an azure file share with azure
recovery vault backups
there's currently no charge for azure
backup for file shares because it's a
snapshot based solution
however you do have to pay for the
snapshots that the solution creates
i hope you found this helpful if so
please subscribe like
and click the bell icon to get
notifications of new content
thanks for watching