Prepare the server and its package
The agent runs on Ubuntu 22.04+, Debian 12+, RHEL, AlmaLinux, Rocky Linux or Oracle Linux 8+, and openSUSE Leap 15.6 or 16. It requires systemd and glibc. Builds are available for x86-64-v2 and ARM64.
Make sure the server can reach your Monitor address and its IP is in the networks permitted for agents. In Monitor, open Updates and save the Linux agent package, for example custos-linux-1.7.0.zip. The installer takes the build for the server’s processor from this package.
Register the machine
- In your Monitor, open Connect and copy the command for Linux servers. You can also reach this page through Machines → Add a machine.
- Run the copied command in the Linux server’s terminal with administrator privileges. The installer checks the SHA-256, installs the program in
/opt/custos, starts the service and contacts Monitor. - Under Machines, find the request from this server, check its identity and approve it. The agent sends heartbeats while waiting for approval. Monitor starts receiving reports after approval.
systemctl is-active custos.service
custos statusStart a test backup
Open the approved machine in Monitor and create a task named Documents. Choose a full backup, add a sample directory on the server and a separate destination directory. Set the first run to manual. The agent collects changes when it contacts Monitor.
custos status
sudo custos run 'Documents'
custos log -fRestore a backup set to another directory
- List the sets with
sudo custos restore list --task 'Documents'. Choose a date and copy the set ID from the first column. If the set is available in multiple destinations, also note the destination ID for the copy you intend to use. - Replace
RUN_IDin the example with the set ID and choose a separate, empty directory for the result. Add--destination DEST_IDto select a particular copy.
sudo custos restore start --task 'Documents' --set RUN_ID --to /srv/custos-test-restoreCheck snapshots and the Monitor connection
- Reading files from a snapshot supports LVM, btrfs and ZFS. For a snapshot warning, run
custos snapshotsand review Snapshots on the machine page. For LVM, check the free space in the volume group. - The service runs saved tasks on its own schedule. While Monitor is unreachable, reports wait in the local queue. The agent sends them in order when the connection returns.
- Use
/var/log/custosfor diagnostics. Settings and the agent database are in/var/lib/custos. For a managed machine, choose an update package under Updates in Monitor.