Help · Troubleshooting
Backups failing or late
What to do when a backup fails, none has run for a while, the copy off the server fails, or Back up now does nothing.
Last updated
Backups are on Tenant → Backups. When one fails, or none has run for 36 hours, an alert goes to everyone under Tenant → Alerts, and System → Health shows it too. Find what you see below.
For how backups work day to day, see Backups.
"Last backup failed" #
You see: Last backup failed on Tenant → Backups, with the reason under it.
- Read the reason. The usual ones:
- No space left on the disk: run
sudo mygration doctorand look under Disk and memory. Free up space, or lower Keep for (days) under Schedule so fewer backups are kept. - another backup was still running after 30 minutes: a backup got stuck. Run
sudo mygration start backupon the server. - Anything else:
sudo mygration logs backupshows more.
- No space left on the disk: run
- Click Back up now. The card should say Last backup OK.
No backup for a day or more #
You see: the last backup is more than a day old, or the last backup failed or is over 36 hours old from
sudo mygration doctor.
Backups only run while the backup part of Mygration is running.
On the server, check:
sudo mygration statusThe list should show
backupas running.If it isn't, start it:
sudo mygration start backupOn Tenant → Backups, check the Schedule: Daily at is the time you expect, in the time zone under Tenant → General.
Click Back up now to take one straight away.
"The backup container didn't pick up the request" #
You see: The backup container didn't pick up the request after clicking Back up now or Check it restores.
The backup part of Mygration isn't running. On the server:
sudo mygration start backup
sudo mygration logs backup
Then click the button again.
"Not copied to …" #
You see: not copied to /mnt/nas/mygration: … next to the last backup.
The backup worked and is on the server, but the second copy didn't.
- Check the folder is mounted on the server:
ls /mnt/nas/mygration(with your folder). A NAS share that dropped needs mounting again. - Check the server can write there, and the NAS or disk isn't full.
- Click Back up now. The card should say copied to ….
If it says BACKUP_COPY_DIR is the same folder as BACKUP_DIR, point BACKUP_COPY_DIR in /opt/mygration/.env
somewhere else, then run sudo mygration start backup. See A copy off this server.
"Only on this server" #
You see: only on this server: set BACKUP_COPY_DIR next to the last backup, or Backups are only on this server on System → Health.
Not a failure, but a lost disk would take the backups with it. Set up a copy elsewhere: see A copy off this server.
"Not encrypted" #
You see: not encrypted: set BACKUP_PASSPHRASE next to the last backup, or Backups aren't encrypted on System → Health.
- Edit
/opt/mygration/.env(sudo nano /opt/mygration/.env) and setBACKUP_PASSPHRASE=to a long random passphrase, such as one fromopenssl rand -hex 32. - Put the passphrase in your password manager. No backup can be restored without it.
- Run
sudo mygration start backup, then click Back up now. The card should say encrypted.
"Didn't restore" #
You see: Didn't restore after Check it restores, with a reason.
The newest backup couldn't be read back. Take a new one with Back up now, then click Check it restores again. If it fails again, collect a support bundle and send it to whoever helps you, and keep the older backups until it's sorted.
No Download latest backup button #
You see: Tenant → Backups shows the last backup, but no Download latest backup.
Update Mygration to the newest version, which gives the panel access to the backups folder: see
Updating Mygration. Meanwhile, copy backups straight off the server, from
/opt/mygration/backups.