Skip to content

Commit

Permalink
Selective restore of Samba and Mail (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi authored Dec 9, 2024
1 parent d925374 commit 742e716
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 6 deletions.
12 changes: 12 additions & 0 deletions backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ available.
* Select the target node.
* Click on the :guilabel:`Restore` button.

Selective content restore
=========================

Some applications allow you to search for and restore specific items from
a backup snapshot. For more information, refer to:

- Samba :ref:`share-selective-restore`, for files and directories within a
Samba share.
- Mail :ref:`mailbox-selective-restore`, for public mailboxes and user
mailbox folders.


.. _cluster_backup-section:

Cluster backup
Expand Down
39 changes: 39 additions & 0 deletions file_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,52 @@ shared folder:
- ``Set permissions``: remove any existing ACLs and recursively grant new
initial ACLs

- ``Restore file or folder``: search files and folders of a past backup
snapshot and restore them. See :ref:`share-selective-restore`.

- ``Delete``: remove the shared folder and its contents

The :guilabel:`Show ACLs` button displays the filesystem ACLs applied to
the shared folder root directory. It is possible to edit ACLs with a SMB
client, like the Windows Explorer application installed with Windows Pro
flavours, or the ``smbcacls`` command provided by the Samba project.

.. _share-selective-restore:

Restore a single file or folder from a shared folder backup
-----------------------------------------------------------

If the application has one or more backup destinations configured and a
backup has already been executed, you can search for and restore a file or
folder from a past backup snapshot of a specific shared folder.

.. warning::

The procedure does not calculate the disk space usage required for the
restore. Ensure sufficient disk space is available before proceeding.

#. Navigate to the Samba application instance and open the Shared Folders
page. Each shared folder is displayed as a card. From the three-dots
menu of the desired shared folder, select ``Restore file or folder``.

#. Choose the backup destination from which to restore the contents.
Loading remote destinations may take some time.

#. Select the date of the backup snapshot to restore. Snapshots are
listed from newest to oldest.

#. Start typing the name of the file or folder to restore. The search
matches both the name and the relative path, starting from the root of
the shared folder. Results are ordered with name matches appearing
before path matches. Select an item from the results.

Click :guilabel:`Restore` to initiate the restore process.

The selected item will be restored into a subfolder of the shared folder,
named "Restored folder". This folder is readable by everyone, while its
contents retain the ACLs from the backup.


.. _file-server-restore:

Restore File server from backup
Expand Down
50 changes: 44 additions & 6 deletions mail.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ By clicking the ``Edit`` item from the three-dots menu it's possible to setup th

* ``Forward messages``: forward all messages to another email address
* ``Custom mailbox quota``: override the quota configured from the :ref:`mail_settings-section`
* ``Custom spam retention``: override the retention configured from the :ref:`mail_settings-section`
* ``Custom spam retention``: override the retention configured from the :ref:`mail_settings-section`

Public mailboxes
----------------
Expand All @@ -168,6 +168,44 @@ When a new public mailbox is created, the mail server will automatically add a n
for all existing mail domains.


.. _mailbox-selective-restore:

Restore a mailbox folder from a backup
--------------------------------------

If the application has one or more backup destinations configured and a
backup has already been executed, you can search for and restore a mailbox
folder from a past backup snapshot of a specific user or public mailbox.

.. warning::

The procedure does not calculate the disk space usage required for the
restore. Ensure sufficient disk space is available before proceeding.

#. Navigate to the Mail application instance and open the Mailboxes page.
Choose the ``User mailboxes`` or ``Public mailboxes`` tab to view a
list of mailboxes. From the three-dots menu of the desired mailbox,
select ``Restore folder``.

#. Select the backup destination from which to restore the folder. Loading
remote destinations may take some time.

#. Choose the date of the backup snapshot to restore. Snapshots are listed
from newest to oldest.

#. Select a folder from the list or start typing its name to filter the
list.

Press :guilabel:`Restore` to begin the restore process.

The selected folder will be restored into a subfolder of the mailbox named
"Restored folder". If the subfolder already exists, it will be removed
before restoring.

If the mailbox quota is exceeded during the restore process, it will be
set to unlimited.


.. _email_addresses:

Addresses
Expand Down Expand Up @@ -318,7 +356,7 @@ As alternative, trigger an immediate new delivery attempt with the button
The same actions can be selectively executed for each message in the
queue, from its three-dots menu. The message delay reason, queue ID,
arrival time, size, sender, and recipients can be inspected with the ``See
details`` action.
details`` action.

.. hint::

Expand Down Expand Up @@ -456,15 +494,15 @@ Mailboxes
---------

Under the ``Mailboxes`` card you can configure the ``Default mail quota``.

If the general mailbox quota is enabled, the ``Mailboxes`` page summarizes the quota usage for
each user. This summary is updated when a user logs in or a message is
delivered.
delivered.

Under the ``Shared mailboxes`` section, ``Shared seen`` selects if the
IMAP *seen* flag is shared or not with other users. In general, the *seen*
flag is used to mark if a message has been read or not. In a shared
mailbox, each user can access the same message.
mailbox, each user can access the same message.

* If users accessing the shared mailbox prefer to know if a mail has
already been read by someone else, set ``Shared seen`` to ``enabled``
Expand All @@ -486,7 +524,7 @@ Master users
------------

Under the ``Master users`` card, you can setup a user that can impersonate another user, gaining full rights
to any mailbox contents and folder permissions.
to any mailbox contents and folder permissions.

Credentials are accepted by the IMAP server:

Expand Down

0 comments on commit 742e716

Please sign in to comment.