Replies: 2 comments
-
If you do not run Vorta in the background, permanently, you could adapt the ExecStart line in the .service-file as follows: This command first checks if Vorta is already running.
Vorta will not be closed automatically after the backup. |
Beta Was this translation helpful? Give feedback.
-
In case you use serval similar usb-disks (same model/ label): How-to change the label (and thereby the name of the .mount unit):
|
Beta Was this translation helpful? Give feedback.
-
This describes how-to set up automatic Vorta backup when a specific USB-disk is plugged in, on Linux.
This how-to has been tested on Linux Mint 22 (based on Ubuntu 24.04) which uses Systemd for service configuration.
No admin/ root privileges are required for this solution.
Please add comments and suggestions.
Preparations, aka set up manual USB-backup in Vorta:
Set up automatic Vorta backup, in three steps:
systemctl --user list-units -t mount
media-yourusername-USBbackupDisk.mount
Don't forget to adapt/ edit the name of the .mount-unit and adapt your Vorta profile name.
systemctl start --user vorta-usb-auto-backup.service
systemctl enable --user vorta-usb-auto-backup.service
Now, 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.service
After changing the .service file, one has to reload:
systemctl --user daemon-reload
Detailed Systemd logs:
journalctl --user -xeu vorta-usb-auto-backup.service
Beta Was this translation helpful? Give feedback.
All reactions