Chapter 12

Administration

This chapter is for administrators, the people who set up and look after FerrumCloud. You reach everything here through the last entry on the rail, Settings. Its side bar lists Settings, Accounts, Areas and System, with the pages of the Backup below.

Administrators always need a second factor. And even as an administrator you don't see other people's personal areas, mail, bookmarks or calendars unless they share them with you.

Settings

The settings of the installation

The Settings page applies to the whole installation. Every change takes effect immediately, without a restart. Values set in the container's environment are shown but can only be changed there.

Section What you set
General Name of the installation (sign-in page, browser tab), Public address (start of share links and published sites), Default language, Default theme, Default accent color and your own Logo
Times and limits Keep the trash for (days), Stay signed in for (days), how often folders are checked for changes, Notice changes right away, Largest file to upload (MB), Versions kept per page
Documents and text recognition Text recognition on or off, Languages for text recognition, how often inboxes and mailboxes are checked, the size of sent attachments, Default folder for filing
Security Second factor for everyone, Shortest password (characters), Allow share links, Longest validity of share links (days)
Database snapshot Folder for snapshots and Keep snapshots for (days)
Bookmarks Fetch title and icon from the home network too
Watch Interval for new watches (minutes), Largest release file (MB), Watch pages in the home network too
Diagnostics Write a diagnostic log, Detail, Keep logs (days)

Your own Logo (PNG, JPEG, WebP or SVG up to 1 MB) appears in the side bar, on the sign-in page, on share pages, in the browser tab and on published sites without a logo of their own.

The database snapshot

Every night FerrumCloud writes a copy of its database, to data/backup by default, and keeps it for seven days. If you choose another folder, only administrators should be able to read it: a snapshot holds everything in the database, including password hashes and the details of every account. Personal areas aren't accepted for this at all.

Accounts and groups

Managing accounts

Under Accounts, New user creates an account: username and password. For existing accounts there are:

  • Set password: a new password; all sessions of this account are ended
  • Make administrator and Revoke administrator; there must always be one administrator left
  • Reset second factor, if the phone got lost for example; the account sets it up again at its next sign-in
  • Delete

When deleting, FerrumCloud asks what should happen to the personal area. Keep the files (the default) turns it into a shared area "Ehemals ..." that only administrators see at first. Delete the files for good removes it; for that you have to type the username to confirm.

Under Groups you bundle accounts, such as "Family". You can then give permissions and shares to the whole group. New members get them immediately.

Areas and access

The areas page

The Areas page shows every shared area and server folder. Personal areas are managed by their owners.

New area creates:

  • a shared area: just a Name; the folder is created in FerrumCloud's data directory
  • a server folder: additionally, under Folder on the server, an absolute path to an existing folder, such as a NAS share mounted into the container. The files stay where they are.

Under Access you see for each area who may use it; without an entry it's Administrators only. Permissions for the whole area grants Read, Read and write or Manage permissions to accounts and groups. Finer permissions on single folders are set in your files as usual, with Permissions.

Remove area takes an area out of FerrumCloud; the files on disk aren't touched. Rescan all brings the search index back in line with the disk if something seems to be missing.

Under Orphaned folders you find personal folders of accounts that were deleted earlier. Take over turns one into a shared area, Delete for good removes it after you type the folder name.

Tip: If FerrumCloud runs on your NAS, mount the shares you want to see in FerrumCloud under /nas/... in the compose file and then add them here as server folders. Set PUID and PGID so that FerrumCloud is allowed to write there.

Assigning library folders

Every account chooses its own music and book folders. As an administrator you can additionally assign folders to all accounts, to groups or to single accounts, such as the family's shared music collection. They then show up for the chosen accounts under From the administrator, next to their own folders.

You can assign them in two places: in your own Music folders or Book folders dialog, with Assign to other accounts next to a folder, and under Accounts in the Library folders section with Assign folder. Under For whom choose All accounts, groups or single accounts, or a mix.

An assignment doesn't grant permissions: a folder only counts for accounts that may read it. The list tells you how many accounts lack read access.

Backup

The backup overview

FerrumCloud backs up the server itself, with BorgBackup: to a Hetzner Storage Box, another SSH server or a locally mounted disk. Backups are deduplicated and encrypted. The Backup section has these pages:

Page Contents
Overview For each plan its state, last and next run, newest archive and used space; Back up now
Plans What is backed up where and when, and how many archives are kept
Repositories Borg's storage locations
Archives Browse the contents of backups and restore
SSH keys Keys for connecting to SSH targets
Restore without FerrumCloud A guide for when things go wrong

Setting up in three steps

  1. SSH keys: Generate key creates a new one. Copy public key and add it on the target, in .ssh/authorized_keys for a Storage Box. The page has a short guide for that. Use Import existing for an existing key without a passphrase.
  2. Repository: Create new creates an empty repository, Attach existing uses one that already exists, including ones from other programs; the old archives stay readable, and FerrumCloud keeps backing up there. Enter the type (SSH or local folder), Address, SSH key and Passphrase, and check with Test connection.
  3. Plan: New plan sets what is backed up and where to.

Tip: Right after creating a repository, save its repository key with Export key and keep it together with the passphrase in a separate place. Without both, nobody can get at the backup any more, including you.

A plan

A plan has several parts:

  • Target: One repository for everything, or One repository per folder below a Base address. With the second kind, Create missing repositories lets FerrumCloud create new ones as needed.
  • Sources: a Fixed list of folders, or all folders below a Root folder, either only certain ones (allow list) or all except certain ones (deny list). The Preview shows which folders are found right now.
  • Back up FerrumCloud itself: includes FerrumCloud's data directory, with secret.key and a fresh snapshot of the database taken right before every backup.
  • Excludes and compression, plus the Archive name.
  • Schedule: Daily or Weekly at a set time, or Manual only.
  • Pruning: how many daily, weekly, monthly and yearly archives are kept, plus optionally all of the last few days. There is deliberately no default.
  • Check repositories (borg check): Monthly, Weekly or Never, each time right after a scheduled backup.

A run shows its progress live, with a log. FerrumCloud clears stuck locks first and retries the backup up to three times on temporary errors. Afterwards it prunes and frees space. If a run fails or ends with warnings, every administrator gets a notification.

Tip: The Backup tile on the overview warns as long as no plan has Back up FerrumCloud itself turned on. Without secret.key, all stored mail passwords and backup passphrases are lost after a restore, and nobody with a second factor can sign in any more.

Checking

Besides the regular check, Plans lets you choose Check now at any time, including Thorough check (read all data). A Test restore pulls a random file from the newest archive and compares it, without writing anything.

Restoring

Under Archives choose a repository and an archive and browse its folders. Select files or folders and click Restore. FerrumCloud asks Into which folder of your files? and creates a new folder there. It never overwrites anything that exists.

Restoring without FerrumCloud

For the worst case, when FerrumCloud itself no longer runs, there's the page Restore without FerrumCloud. It shows step by step how to get at your data with Borg on any Linux machine, with the right commands for your repositories. You need three things for it that you should keep separately: the passphrase, the exported repository key and an SSH login of your own to the target.

System

The system page

The System page shows the version and all Jobs, the tasks that run regularly in the background: scanning folders, processing inboxes, fetching mail, checking watches, emptying the trash, reading music and so on. You see when each job last ran and whether it had errors, and Run now starts it immediately.

Diagnostics

FerrumCloud keeps an eye on itself. If something gets stuck, because the database doesn't answer or a request runs unusually long, it writes a report to data/logs on its own and notifies every administrator.

The Diagnostics section lists these reports with Download and Delete. Stack dump now writes a report right away. Turn on a detailed log in the settings with Write a diagnostic log. Passwords, the contents of files and mail and other private details never end up in a log.

If the page doesn't answer at all, this command on the server writes a report without stopping anything:

docker kill -s USR1 ferrumcloud

Emergency access

If you've forgotten your password and have no recovery code left, a command on the server helps. Use your PUID and PGID so the database doesn't end up belonging to root:

docker compose exec -u 1000:1000 ferrumcloud ferrumcloud reset-access <username>

The account gets a new random password, shown once. The second factor is reset, all sessions and app passwords are ended, and at the next sign-in you set up the second factor again.

About FerrumCloud

In the account menu, About FerrumCloud shows everyone who is signed in the version, the AGPL-3.0 license, a link to the source code and all projects FerrumCloud builds on, with their purpose and license. You also see which external programs are available on the server, such as text recognition or BorgBackup.

FerrumCloud is free software under the AGPL-3.0. GitHub