Replies: 2 comments
|
If you do not already run Vorta in the background, you can adapt the ExecStart line in the .service-file as follows: ExecStart=/bin/bash -c 'if ! pidof -x "vorta" >/dev/null; then vorta & sleep 5; fi && vorta --create USB_backup_profile'This command first checks if Vorta is already running.
Vorta will not be closed automatically after the backup. |
|
In case you use serval similar usb-disks (same model/ label): How-to change the name of the .mount unit:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The following describes how to set up automatic Vorta backups when a specific USB-disk is plugged in, on Linux.
This how-to has been tested on Linux Mint 22.3 (based on Ubuntu 24.04) which uses Systemd for service configuration.
No admin/ root privileges are required.
Feel free to add comments and suggestions.
Preparations, aka set up a manual USB-backup in Vorta:
Set up automatic Vorta backup, in three steps:
systemctl --user list-units -t mountmedia-username-backupDrive.mountCreate the following Systemd .service-file as
~/.config/systemd/user/vorta-usb-auto-backup.serviceNow, when you plugin/ mount your USB-device, the Vorta backup specified by the "USB_backup_profile" will automatically be started.
IMPORTANT: For this to work, Vorta has to be running (in the background) on your computer. Therefore, it might be useful to enable "Automatically start Vorta at login" in the Vorta settings.
Useful terminal commands - for maintenance:
Check the status of the new backup service:
systemctl status --user vorta-usb-auto-backup.serviceAfter changing the .service file, one has to reload:
systemctl --user daemon-reloadDetailed Systemd logs:
journalctl --user -xeu vorta-usb-auto-backup.serviceedit: updated the systemd .service file
All reactions