View previous topic :: View next topic |
Author |
Message |
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Fri Aug 25, 2017 7:13 am Post subject: [solved] KDE backup software Kup |
|
|
Hello,
I would like to re-use the backup program Kup. It is unfortunately not in the official repositories. No idea how but I managed to install and use it up until recently I had to re-install the entire system. As a consequence, I have no access to my backups any longer.
I digged into these "overlay" stories and the corresponding section in the handbook. Tried setting up a kup.conf: Code: | cat /etc/portage/repos.conf/kup.conf
[DEFAULT]
main-repo = kup
[kup]
location = /usr/portage/
sync-type = git
sync-uri = https://github.com/spersson/Kup/
auto-sync = true
| but that does not work:
Code: | portageq repos_config /
!!! Section 'kup' in repos.conf has name different from repository name 'gentoo' set inside repository
[DEFAULT]
auto-sync = yes
strict-misc-digests = true
[gentoo]
auto-sync = yes
location = /usr/portage
masters =
strict-misc-digests = true
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
sync-rsync-extra-opts = None | Must admit that I do not understand very much.
Rather than further messing around and potentially jeopardising my system I want to ask for help how I can use this backup program. It is for the plasma/KDE desktop and integrates neatly into its system settings.
Thanks,
Lokesh _________________ Sometimes frustrated Linux User
Last edited by Lokesh on Fri Sep 08, 2017 1:56 pm; edited 1 time in total |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Aug 25, 2017 7:45 am Post subject: |
|
|
Interesting, wasn't aware of that. However, there are also kbackup and kfoldersync available in portage. |
|
Back to top |
|
|
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Fri Aug 25, 2017 9:01 am Post subject: |
|
|
asturm wrote: | However, there are also kbackup and kfoldersync available in portage. | It is unlikely that these two can access my previous backups. _________________ Sometimes frustrated Linux User |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Aug 25, 2017 12:20 pm Post subject: Re: KDE backup software Kup |
|
|
Lokesh wrote: | I digged into these "overlay" stories and the corresponding section in the handbook. Tried setting up a kup.conf: Code: | cat /etc/portage/repos.conf/kup.conf
[DEFAULT]
main-repo = kup
[kup]
location = /usr/portage/
sync-type = git
sync-uri = https://github.com/spersson/Kup/
auto-sync = true
| but that does not work: |
Well that makes no sense. First of all, your overlay must be a separate directory in your file system, not the same as portage (error message tells you about that). Secondly, is https://github.com/spersson/Kup/ a portage overlay? I doubt it. So for an overlay to be useful in any way, you first need to have an ebuild. Creating those is not that hard, and has the benefit of being in control over the application and its dependencies, not having it installed as a rogue binary, and being easily transferable to other systems. In that ebuild you would set the path to the above git URL, in case you want to do a live ebuild, or to a certain source release tarball, if you want that. Since kbackup and kfoldersync are at least doing similar things and are also qt5/kf5-based, you can have a look at their ebuilds and learn from them. |
|
Back to top |
|
|
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Tue Aug 29, 2017 5:50 am Post subject: |
|
|
So it seems I need an ebuild.
I read the wiki and must admit: I don't understand it. To me, too much specific language, e.g. an "overlay" remains an unclear term. I would need a step-by-step guidance .... _________________ Sometimes frustrated Linux User |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
|
Back to top |
|
|
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Wed Aug 30, 2017 9:36 am Post subject: |
|
|
asturm wrote: | What wiki did you read? | All three of them
Some examples of points I do not underrstand, but not exhaustive (clarifying these points only would not suffice):
asturm wrote: | https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository | e.g.: "the repository should not be automatically synchronized (as it is not backed by an rsync server, git mirror or other repository source)" yes/no, it applies when, why? No problem for a professional IT expert, probably (I am not).
asturm wrote: | https://wiki.gentoo.org/wiki/Custom_repository | e.g. "We will assume the ebuild is in the homedir of the user myuser, and named artha-1.0.2.ebuild." this is the immediate step following the above wiki. However, when has the ebuilt been built, and how?
asturm wrote: | https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds | A lot remains unclear. E.g.: "the archive we downloaded is automatically unpacked, this is really useful as we don't have to implement this anymore. We can change this behavior by overriding its function (src_unpack)" The Kup website says: "Use Git or checkout with SVN using the web URL". I do not see any slot in the wikis where I could put that in.
I am not able to do this, neither do I want to mess around and trying this and that. It seems not a good idea to me, which may jeopardise my system ultimately.
So far my solution is to run it from my Debian system (the backed up data is on a drive shared by both Linuxees). Was a breeze to install it. _________________ Sometimes frustrated Linux User |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Wed Aug 30, 2017 11:10 am Post subject: |
|
|
Compared to kbackup and kfoldersync, kup is actively maintained and works a bit like the Mega-Client, meaning in the background without disturbing.
It sounds quite useful, so hang on, I'll add an ebuild to my overlay. (Will tell you how to use it when it's ready.)
(btw.: kup uses either rsync or bup for its backups, so you can read your backups with one of them.) _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Wed Aug 30, 2017 12:28 pm Post subject: |
|
|
Feel free to open a PR for kde overlay. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Wed Aug 30, 2017 12:55 pm Post subject: |
|
|
Done!
Here is the very short install guide:
- If not done, yet:
Note: You need the git USE flag to be enabled.
If not done, yet:
These are the USE Flags available: Code: | # equery u app-backup/kup
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for app-backup/kup-0.7.0:
U I
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
+ + handbook : Enable handbooks generation for packages by KDE
- - libressl : Use dev-libs/libressl as SSL provider (might need ssl USE flag), packages should not depend on
this USE flag
+ + system-libgit2 : Use dev-libs/libgit2 instead of the bundled one. | I suggest you leave it as it is.
If you do not have Haskell installed on your system, add Code: | app-backup/bup -doc | to /etc/portage/package.use or any file in it if it is a directory.
Otherwise, app-backup/bup will pull in over a hundred additional packages!
emerge app-backup/kup
Enjoy! _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Fri Sep 01, 2017 3:27 pm Post subject: |
|
|
Yamakuzure wrote: | Done!
Here is the very short install guide |
Cool, thank you very much, I will give it a try.
Just one question: are there any packages in your overlay that could interfere with the normal portage repository?
Thanks,
Lokesh _________________ Sometimes frustrated Linux User |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Fri Sep 01, 2017 4:34 pm Post subject: |
|
|
Lokesh wrote: | asturm wrote: | https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository | e.g.: "the repository should not be automatically synchronized (as it is not backed by an rsync server, git mirror or other repository source)" yes/no, it applies when, why? No problem for a professional IT expert, probably (I am not). |
Example of a custom ebuild repository aka "local overlay": /etc/portage/repos.conf/foobar: | [test_repository]
location = /usr/local/portage
masters = gentoo
auto-sync = no |
/usr/local/portage: | ├── metadata
│ └── layout.conf
├── profiles
│ └── repo_name # test_repository
├── category
│ └── my_package
│ ├── Manifest
│ ├── metadata.xml
│ └── my_package-1.2.5.ebuild
| Here, my_package-1.2.5.ebuild is created by yourself and cannot be synced from anywhere because it only exists on your computer.
Lokesh wrote: | asturm wrote: | https://wiki.gentoo.org/wiki/Custom_repository | e.g. "We will assume the ebuild is in the homedir of the user myuser, and named artha-1.0.2.ebuild." this is the immediate step following the above wiki. However, when has the ebuilt been built, and how? | It's built by yourself ( try vim foobar.ebuild (needs app-vim/gentoo-syntax) ) or copied from somewhere else.
Lokesh wrote: | asturm wrote: | https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds | A lot remains unclear. E.g.: "the archive we downloaded is automatically unpacked, this is really useful as we don't have to implement this anymore. We can change this behavior by overriding its function (src_unpack)" The Kup website says: "Use Git or checkout with SVN using the web URL". I do not see any slot in the wikis where I could put that in. | The Kup website is not an ebuild repository. So it does not contain ebuilds and thus does not have slots. Please have a look into an ebuild. Almost every ebuild has a SRC_URI. You can guess what it is for? If not, see https://devmanual.gentoo.org/ebuild-writing/variables/.
Lokesh wrote: | I am not able to do this, neither do I want to mess around and trying this and that. It seems not a good idea to me, | And within a few weeks you will have learned doing your own pull requests like others did, e.g.. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Tue Sep 05, 2017 8:52 am Post subject: |
|
|
Lokesh wrote: | Just one question: are there any packages in your overlay that could interfere with the normal portage repository? | Everything in my overlay is at least keyworded ("~amd64"), without keywords, or hard masked, that could interfere with the default tree. _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Wed Sep 06, 2017 3:56 pm Post subject: |
|
|
Yamakuzure wrote: | Everything in my overlay is at least keyworded ("~amd64"), without keywords, or hard masked, that could interfere with the default tree. |
Thanks for your efforts.
I assumed it was a no-brainer, but :I am not able to add your overlay!
layman -L list your repository but Code: | sudo layman -a seden
* Adding overlay...
* Warning: an installed db file was not found at: ['/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml']
* Exception: Overlay "seden" does not exist.
* CLI: Errors occurred processing action add
* Exception: Overlay "seden" does not exist. |
I installed layman as follows Code: | sudo emerge -av layman
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] app-portage/layman-2.4.2::gentoo USE="git sync-plugin-portage -bazaar -cvs -darcs (-g-sorcery) -gpg -mercurial -sqlite -squashfs -subversion {-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5) (-python3_6)" 0 KiB | So what did I do wrong?
A layman.conf file is created by "layman-updater -R", but: it is empty: Code: | cat /etc/portage/repos.conf/layman.conf
| nothing. There is also no /var/lib/layman/make.conf. I am puzzled, nothing works as it should.
BTW: /etc/portage/make.conf does NOT include the line with "source /var/lib/layman/make.conf", because this file does not exist
Lokesh _________________ Sometimes frustrated Linux User |
|
Back to top |
|
|
Lokesh Apprentice
Joined: 01 Apr 2012 Posts: 161
|
Posted: Wed Sep 06, 2017 6:11 pm Post subject: |
|
|
Solved it, somehow.
I followed the advice given in this thread.
It seems that the key was running Code: | sudo layman -f
Passwort:
* Fetching remote list...
* Fetch Ok
| Thereafter, adding the repository worked flawlessly. There is no mentioning of the "-f" flag to the layman command in the wiki. It seems to be outdated anyway, i.e. no /var/lib/layman/make.conf file, no changes neccessary to the /etc/portage/make.conf, and the above "new" flag to download the overlay list.
KUP is installing currently. Thank you Yamakuzure!
Lokesh _________________ Sometimes frustrated Linux User |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Thu Sep 07, 2017 10:31 am Post subject: |
|
|
Lokesh wrote: | KUP is installing currently. Thank you Yamakuzure! | Your are welcome!
And I am happy that you solved the layman issue by yourself. _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Jul 26, 2019 2:31 pm Post subject: |
|
|
kup is now a KDE project, and as such, 0.7.3 was packaged by kde team in Gentoo ebuild repository. |
|
Back to top |
|
|
Section_8 l33t
Joined: 22 May 2004 Posts: 627
|
|
Back to top |
|
|
|