Skip to content

Backups only happen at login and never at the scheduled time #2312

@arcticcacti

Description

@arcticcacti

Description

I've set Vorta up to backup at 6pm every day, and to perform a backup at startup if the last one was missed.

What's actually happening is it always runs a backup at startup, and reschedules the next one for 6pm the next day instead. But at startup that day, it thinks it missed the last backup and repeats the same behaviour. Here's a typical log from before shutdown, then after restarting and logging in:

2025-12-09 15:22:59,457 - vorta.scheduler - DEBUG - Catching up by running job for Default (1)
2025-12-09 15:22:59,459 - vorta.scheduler - INFO - Starting background backup for Default
...
2025-12-09 15:23:19,091 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-10 18:00:00
2025-12-09 15:23:19,177 - vorta.notifications - DEBUG - notification not suppressed
2025-12-09 15:23:19,178 - vorta.scheduler - INFO - Backup creation successful.
...
2025-12-09 22:49:41,236 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-10 18:00:00

...

2025-12-10 09:46:27,811 - vorta.scheduler - DEBUG - Catching up by running job for Default (1)
2025-12-10 09:46:27,813 - vorta.scheduler - INFO - Starting background backup for Default
...
2025-12-10 09:46:31,248 - vorta.borg.borg_job - INFO - Creating archive at "/mnt/nas_backup/gatito::gatito-2025-12-1
0-094629"
...
2025-12-10 09:46:48,692 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:48,692 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:46:48,779 - vorta.notifications - DEBUG - notification not suppressed
2025-12-10 09:46:48,780 - vorta.scheduler - INFO - Backup creation successful.
2025-12-10 09:46:48,782 - vorta.scheduler - INFO - Doing post-backup jobs for Default

So even though the next backup is scheduled for 6pm on the 10th, logging in at 10am that day triggers a backup. And when it completes it schedules the next backup a day later - so nothing ever happens at 6pm when it's supposed to. I tried disabling the 'missed backups' option for a couple of days, and enabled it after it successfully ran at 6pm. But it performed another backup at startup the next day, and fell back into the same behaviour.


It seems like the 'missed backup' check isn't working properly, or maybe it has a different idea of when a backup should have occurred the previous day? Personally I would expect a backup to always happen at 6pm (if possible) whether or not a 'catchup' one ran earlier, but as I understand it the scheduler is aiming for 'one per day' instead? The 'missed backup' check doesn't seem like it's checking if one ran the previous day though, and even when the backup ran when it was supposed to, it still seems to have been considered 'missed'.

Reproduction

  • I tried to reproduce the issue.
  • I was able to reproduce the issue.

OS

Fedora Linux 43 (6.17.10), KDE 6.5.3

Version of Vorta

0.10.2

What did you install Vorta with?

Distribution package

Version of Borg

1.4.2

Logs

2025-12-09 22:49:41,232 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-12-09 22:49:41,235 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-09 22:49:41,236 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-10 18:00:00
2025-12-10 09:46:27,308 - vorta.i18n - DEBUG - Loading translation failed for ['en-Latn-GB', 'en-GB', 'en-Latn', 'en'].
2025-12-10 09:46:27,508 - vorta.views.source_tab - DEBUG - Added item number 0 from 1
2025-12-10 09:46:27,787 - root - INFO - Using NetworkManagerMonitor NetworkStatusMonitor implementation.
2025-12-10 09:46:27,810 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:27,811 - vorta.scheduler - DEBUG - Catching up by running job for Default (1)
2025-12-10 09:46:27,813 - vorta.scheduler - INFO - Starting background backup for Default
2025-12-10 09:46:27,814 - vorta.notifications - DEBUG - notification not suppressed
2025-12-10 09:46:28,778 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-12-10 09:46:29,020 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-12-10 09:46:29,021 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-12-10 09:46:29,036 - vorta.keyring.kwallet - DEBUG - Retrieved password for repo /mnt/nas_backup/gatito
2025-12-10 09:46:29,561 - vorta.scheduler - INFO - Preparation for backup successful.
2025-12-10 09:46:29,562 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2025-12-10 09:46:29,596 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2025-12-10 09:46:29,610 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg create --list --progress --info --log-json --json --filter=AM -C lz4 --exclude-from /tmp/tmpde430l5y /mnt/nas_backup/gatito::gatito-2025-12-10-094629 /home/me
2025-12-10 09:46:29,619 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:29,620 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 00:00:00
2025-12-10 09:46:29,649 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:29,650 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:46:29,787 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2025-12-10 09:46:29,787 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2025-12-10 09:46:29,798 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg --version
2025-12-10 09:46:30,343 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2025-12-10 09:46:30,343 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2025-12-10 09:46:30,343 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-12-10 09:46:30,348 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:30,350 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:46:31,248 - vorta.borg.borg_job - INFO - Creating archive at "/mnt/nas_backup/gatito::gatito-2025-12-10-094629"
2025-12-10 09:46:48,691 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2025-12-10 09:46:48,691 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2025-12-10 09:46:48,692 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:48,692 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:46:48,779 - vorta.notifications - DEBUG - notification not suppressed
2025-12-10 09:46:48,780 - vorta.scheduler - INFO - Backup creation successful.
2025-12-10 09:46:48,782 - vorta.scheduler - INFO - Doing post-backup jobs for Default
2025-12-10 09:46:48,783 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-12-10 09:46:48,784 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-12-10 09:46:48,784 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-12-10 09:46:48,790 - vorta.keyring.kwallet - DEBUG - Retrieved password for repo /mnt/nas_backup/gatito
2025-12-10 09:46:48,793 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2025-12-10 09:46:48,793 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2025-12-10 09:46:48,795 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-12-10 09:46:48,796 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-12-10 09:46:48,796 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-12-10 09:46:48,798 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg prune --list --info --log-json --keep-hourly 2 --keep-daily 7 --keep-weekly 4 --keep-monthly 2 --keep-yearly 0 -a gatito-* --keep-within 10H /mnt/nas_backup/gatito
2025-12-10 09:46:48,800 - vorta.keyring.kwallet - DEBUG - Retrieved password for repo /mnt/nas_backup/gatito
2025-12-10 09:46:48,803 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2025-12-10 09:46:48,804 - vorta.scheduler - INFO - Finished background task for profile Default
2025-12-10 09:46:48,804 - vorta.notifications - DEBUG - notification not suppressed
2025-12-10 09:46:48,807 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:48,808 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:46:49,232 - vorta.borg.borg_job - INFO - Keeping archive (rule: within #1):           gatito-2025-12-10-094629             Wed, 2025-12-10 09:46:31 [c86c3360c08d4b3a52cc675dee2ddc944bad1686037e874181ea4950c6d1291d]
2025-12-10 09:46:49,233 - vorta.borg.borg_job - INFO - Keeping archive (rule: hourly #1):           gatito-2025-12-09-152301             Tue, 2025-12-09 15:23:02 [e53044892922c30192b45e93314f3b805a0b39fe8bd4f38454343797f90e399a]
2025-12-10 09:46:49,233 - vorta.borg.borg_job - INFO - Keeping archive (rule: hourly #2):           gatito-2025-12-08-185944             Mon, 2025-12-08 18:59:44 [195d67cca4dcb9abd029d0324d5e0e1bdb17ac0c30976e43ce8fcde4f333eecf]
2025-12-10 09:46:49,426 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2025-12-10 09:46:49,426 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2025-12-10 09:46:49,428 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:49,429 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:46:49,429 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg list --info --log-json --json /mnt/nas_backup/gatito
2025-12-10 09:46:50,126 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2025-12-10 09:46:50,127 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2025-12-10 09:46:50,127 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:46:50,128 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:48:05,697 - vorta.i18n - DEBUG - Loading translation failed for ['en-Latn-GB', 'en-GB', 'en-Latn', 'en'].
2025-12-10 09:48:05,885 - vorta.views.source_tab - DEBUG - Added item number 0 from 1
2025-12-10 09:48:06,118 - root - INFO - Using NetworkManagerMonitor NetworkStatusMonitor implementation.
2025-12-10 09:48:06,138 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:48:06,139 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 00:00:00
2025-12-10 09:48:06,153 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:48:06,154 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 00:00:00
2025-12-10 09:48:06,163 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:48:06,163 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 09:48:06,207 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2025-12-10 09:48:06,208 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2025-12-10 09:48:06,213 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg --version
2025-12-10 09:48:06,493 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2025-12-10 09:48:06,493 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2025-12-10 09:48:06,494 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-12-10 09:48:06,495 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 09:48:06,496 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 10:03:05,820 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-12-10 10:03:05,826 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 10:03:05,828 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00
2025-12-10 10:18:05,919 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-12-10 10:18:05,925 - vorta.scheduler - INFO - Setting timer for profile 1
2025-12-10 10:18:05,926 - vorta.scheduler - DEBUG - Scheduling next run for 2025-12-11 18:00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions