Skip to content

Any non UI options to import profiles? #2196

Answered by goebbe
hrafnthor asked this question in FAQ
Discussion options

You must be logged in to vote

The docs state the following about the use of a .json profile:

  • it has to be placed in the users home directory ~
  • has to be named .vorta-init.json
  • this file will be imported automatically when starting (or restarting) Vorta
  • this .json file will be deleted after import.

So, to my knowledge, the only non UI option (e.g. via shell script) is to:

  • move / rename a .json file appropriately
  • restart Vorta

Restarting Vorta (GUI) from a shell script can be pretty "interesting" since some environment variables have to be set appropriately. E.g. on Ubuntu, when using crontab to start Vorta I use the following command:
env DISPLAY=:0 env DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /bin/ba…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hrafnthor
Comment options

Answer selected by hrafnthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants