Replies: 28 comments 5 replies
-
@patogit thanks a lot for the nice words :) I agree that it would be helpful if exporting/importing your profiles would be easier. Until this can be done in the GUI, you can find your settings in:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt response @Hofer-Julian. I don't know Python, or much other coding, but I can poke around and tweak things. I found the
Maybe this brings up security concerns? I doubt it, but hey, each file floating around telling someone about my backups offers them insight into my system. This is each users responsibility not to leave lying around, but maybe something can be done to minimize risk. |
Beta Was this translation helpful? Give feedback.
-
For a proper export, we also need to deal with saved repo passwords. Those are not always in the DB, but use the system keychain if one is available. |
Beta Was this translation helpful? Give feedback.
-
Idea: The settings export dialog can offer fine grained control of what to export, with a column for each profile and a row for each category of settings (repo, sources, schedule/logs/commands, archives/prune options). Also a space at the top for the Misc settings that affect how Vorta runs. Each of these would be a check box, so that I can select, for example, all the settings of my first profile, and only the sources settings of my second profile, and export all of that into a file. |
Beta Was this translation helpful? Give feedback.
-
Details of how I scared myself this morning:
I think I understand at least one piece of the puzzle: an archive that includes
|
Beta Was this translation helpful? Give feedback.
-
Thanks @Hofer-Julian for the paths. In my case (Ubuntu 20.04 + Flatpak) it was: |
Beta Was this translation helpful? Give feedback.
-
Absolutely correct, it seems like I forgot the ~/.var prefix, I've edited my comment. |
Beta Was this translation helpful? Give feedback.
-
Or have the settings at a fixed location something like ~/.config/vorta/settings.db across platforms so that one can symlink the settings from elsewhere. And/or for read a borg patterns file. |
Beta Was this translation helpful? Give feedback.
-
That won't work, since we need to follow the platforms conventions on file locations. BUT we can add a link to the folder, like we already do for the log folder. |
Beta Was this translation helpful? Give feedback.
-
it's here on a Mac: |
Beta Was this translation helpful? Give feedback.
-
I found this gist https://gist.github.com/zdxerr/8491076. Unclear what the license for it is, but it should be useful. |
Beta Was this translation helpful? Give feedback.
-
Would an acceptable solution be copying and restoring the entire database, rather than individual profiles? |
Beta Was this translation helpful? Give feedback.
-
We don't need code to copy the database. Just a link to the settings folder or some details in the docs would be enough. One use case for import/export is automated deployments to e.g. company laptops via some kind of MDM. For this we need some kind of export format. There was also the suggestion to import/support Borgmatic settings (YAML format). |
Beta Was this translation helpful? Give feedback.
-
Peewee does have model_to_dict and dict_to_model methods. I could use that, and this logic for imports:
For exports just write the output of model_to_dict to a file. You would only need to backup the password if its in the vorta database, since the other system keyrings have files that can be backed up individually. The profile backup feature would most likely be used on similar systems that both have the same setup of system keyring, such as laptop to PC. Oh, and maybe there could be a setting of including the profile backup in the borg repository. |
Beta Was this translation helpful? Give feedback.
-
Where should I put the profile backup/restore button?
|
Beta Was this translation helpful? Give feedback.
-
Have we already decided on all other details? Export format? What to export? Regarding where: Maybe near profiles in a sub-menu, if the export is based on profiles. We'll have too many buttons (that aren't used often) after adding import/export, so I suggest a new sub-menu with [...] like "Other Profile Actions". "Add Profile" would still be at the top-level, but the rest can be hidden, since those aren't used so often. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Collapsing buttons is not a very common UI element on desktop. It's more common to use a submenu. E.g. her in the network settings. |
Beta Was this translation helpful? Give feedback.
-
Ah, OK. Menus have to be generated using code, there is no way to do it in the Qt Creator, right? |
Beta Was this translation helpful? Give feedback.
-
You could do them as QML, but probably simpler in code. |
Beta Was this translation helpful? Give feedback.
-
I have created a backup/restore system, but I need someone that has wifi settings on a mac to test it . https://github.com/samuel-w/vorta-1/tree/BackupRestore |
Beta Was this translation helpful? Give feedback.
-
Will test it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
How should schema upgrades be handled? |
Beta Was this translation helpful? Give feedback.
-
We have versioning and migration code in |
Beta Was this translation helpful? Give feedback.
-
For upgrading, we could:
This would require seperating the migration logic from init_db. Importing the profile and then migrating would not work, as there could be columns in the profile that do not exist in the database. |
Beta Was this translation helpful? Give feedback.
-
Can you open a pull request when the changes are ready? Easier to see the changes that way. Importing an older version can be complex and changing the DB is risky. Better to only import all known options and just ignore the rest. |
Beta Was this translation helpful? Give feedback.
-
I was just checking in on this issue and I realized that in my case the settings.db file is located at In case that's useful for others. |
Beta Was this translation helpful? Give feedback.
-
Any update on this? This feature would be extremely useful for the company I work in. Can I help somehow? |
Beta Was this translation helpful? Give feedback.
-
First -- thank you very very much for making such great free/libre software! I've used GNU/Linux for about ten years, and whenever I looked at backup solutions, they all seemed too simple or way too complex. Vorta gives me secure backups with detailed control, sane defaults and an easy to understand interface. A delightful creation!
Summary:
I want Vorta to let me save profiles and then load them on a different system.
Details:
I just used Vorta to backup my system and user files, then I erased my disk. Now I've installed a fresh operating system and installed Vorta. I open Vorta, and want the option to load my old profiles, but that option doesn't exist. So I create a new profile and "Add Existing Repository" and give it the location and passphrase, and it successfully loads the archives. But now, if I want to make a new backup, I have to recreate my old profile! In this case, the most tedious and error-prone part is the Sources tab -- can I remember exactly what sources and exclude patterns I used to create these backups? If I can, great. If not, time for another round of trial and error and honing the details.
Where are my profiles? I looked for the profiles, both on my new system and the mounted backup, and I don't see them anywhere. I see
~/.config/borg/security
has the same number of directories as I had profiles, but the files don't have my sources list. If I could find my profiles, that would be a first step towards backing them up and loading them. As it is, Vorta appears to function in a way that I can't back up my backup config :). This means that I can't integrate it with config managers either, likenix
,guix
, oraconfmgr
.Beta Was this translation helpful? Give feedback.
All reactions