borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
2k stars 133 forks source link

Running multiple backups at the same time? #1906

Open m3nu opened 8 months ago

m3nu commented 8 months ago

Discussed in https://github.com/borgbase/vorta/discussions/1905

Originally posted by **mike-cuche** January 21, 2024 Hello. Prior to vorta 0.9 I was able to run automatically multiple backups at once, when I plugged a specific external hard disk. I have a "local" profile that backups on said disk and a "remote" one that backups on a cloud. I achieved that by using a couple of systemd user units: ``` [Unit] Description=Vorta daemon [Service] Type=forking ExecStart=/usr/bin/vorta -d [Install] WantedBy=default.target ``` ``` [Unit] Description=Run Vorta when I plug my external HDD Requires=vorta-daemon.service After=vorta-daemon.service [Service] Type=oneshot ExecStart=/usr/bin/vorta ExecStart=/usr/bin/vorta --create locale ExecStart=/usr/bin/vorta --create remote [Install] WantedBy=run-media-user-BackupDisk.mount ``` However, when I upgraded to Vorta 0.9, now only one backup is able to start and now I'm forced to constantly check the application to verify that the first backup has ended and manually start the second one. Creating the second backup from the terminal reports `2024-01-21 08:42:13,647 - vorta.application - INFO - Creating backup using existing Vorta instance.` but nothing happens. This new behavior is annoying. Is there a way to run multiple backups with this new version?
real-yfprojects commented 8 months ago

So where does this regression come from? The following lines responsible for that feature weren't changed in years. https://github.com/borgbase/vorta/blob/466597207666996629e2f49cbd5482760b84c38b/src/vorta/application.py#L149-L157

ThomasWaldmann commented 8 months ago

Maybe related: #1889