--- type: Module purpose: Say what each script in scripts/ does, where it runs, and which guide drives it. answers: - "What does each script in scripts/ do, and where does it run?" cites: - scripts/backup.sh - scripts/gitea-backup - scripts/chkdsk-vm.sh --- # scripts/ | Script | Runs on | Does | Guide | |---|---|---|---| | `scripts/backup.sh` | server, as the admin user | manual tar backup of `gitea-data/` to the backup drive plus restore test; `verify ARCHIVE` re-checks one | [10](../guides/10-backup-manual.md) | | `scripts/gitea-backup` | server, root, installed to `/usr/local/sbin/` | nightly restic backup and its subcommands (`init`, `run`, `snapshots`, `check`, `restore-test`, `test-mail`, `notify-failure`) | [11](../guides/11-backup-automated.md), [ops](../guides/backup-operations.md) | | `scripts/chkdsk-vm.sh` | a separate Linux PC, not the server | boots a Windows Setup VM with the backup drive passed through for `chkdsk` | [ntfs-repair](../guides/ntfs-repair.md) | `gitea-backup` runs from the systemd units in `systemd/` (`gitea-backup.service`, `.timer`, `gitea-backup-failed.service`); the guide for [11](../guides/11-backup-automated.md) lists where each is installed.