Skip to main content

Backups and howto

This yunohost server is backed up onto two separate USB drives both of which are on-premise. Several attempts have been made to perform an off-premise backup using both Borg and Restic, but found to be more difficult than it’s worth. worth!

Drive 1 (Drive label: YNHRECOVERY)

This backup uses the built-in Yunohost backup and recovery service provided within yunohost.service. A simple cronjob is used detailing the time and what is to be backed up.

FULL BACK UP

  • Time:Time: Midnight every Wednesday and Sunday
  • What:What: EVERYTHING. This is a full backup. Everything is checked off in the yunohostYunohost back service.

OTHER

  • Time: 4 AM EVERY day.
  • What:What: User home folderfolders and emailemails

Drive 2 (Drive label: DATARECOVERY)

This drive uses the Restic backup/recovery application which is a 3rd party application. Again a Cronjobcronjob is used to detail the times and what items are to be backed up.

  • Time: 3 AM EVERY day
  • What: The following folders are incrementally backed up:
    • er
    • er
    • er
    • er
    • er

The difference between the two backups is that the Restic backup is incremental and it saves the last three backups.backups are kept. The yunohostYunohost backup is not incremental and therefore some administration has to be done to prune the drive as it becomes full.

HOW TO USE THE RESTIC BACKUP SERVICE

Restic is a backup service that can be instlledinstalled from the CLI or through the yunohostYunohost application catalouge.catalogue. On this serverserver, it has been installed using the CLI. See this link to see how you can install Restc using the CLI.

Where is my Restic?
The Restic repository can be found at: media/datarecovery/restic. This is a symbolic link from the Restic directory on the main drive. The physical drive is a USB spinner labelled “datarecovery”. 

What is the latest installed Restic version?
Type: restic version This will tell you the current version whcihwhich right now is restic 0.17.03 compiled with go1.22.5 on linux/amd64

Can I update the version?

Type: restic self-update. If there is an update available it will be downloaded and installed.