This forum has been archived. All content is frozen. Please use KDE Discuss instead.

backups of /kde4 on development machine

Tags: None
(comma "," separated)
User avatar
inksi
Registered Member
Posts
77
Karma
0
OS
Hi,

Using rsync to do backups of various machines I saw the whole of /kde4 going through. It was a large amount and took an eternity. I am thinking that there is no need to backup the whole of the /src and /build directories even if next time around it was less.

If the worst came to the worst, then i would download a new commit and rebuild again.

What is the consensus on this bearing in mind that I am going to frequently 'git pull' and 'make install' on this machine (but not so frequently on production machines?

regards
Ian
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Hi Ian,
Let's see. When you need to restore from backup:
- consider ..../kde4/build/* as a temporary directory for builds, keeping it only speeds up subsequent builds, so yes, it can be excluded from backup
- bin, include, lib64, sbin, xdg subdirectories in ..../kde4/inst will be outdated once you plan to rebuild and install kexi, so these can be also excluded.

Regarding keeping the kde4/inst/lib64/ after months of installing subsequent releases of Kexi, I can tell you that I just looked there now and there is garbage as follows:
..../kde4/inst/lib64/libkeximain.so.10.0.0
..../kde4/inst/lib64/libkeximain.so.11.0.0
..../kde4/inst/lib64/libkeximain.so.12.0.0
..../kde4/inst/lib64/libkeximain.so.13.0.0
..../kde4/inst/lib64/libkeximain.so.14.0.0
..../kde4/inst/lib64/libkeximain.so.9.0.0

(only libkeximain.so.14.0.0 is actual version)

Removing old version of libraries would not break Kexi. I bet that you don't need to store and backup all that.

Pure (and quite large) cache that can be excluded too:
- ..../kde4/inst/share/akonadi
- ..../kde4/inst/cache-*
- ..../kde4/.kde/cache-*
- ..../kde4/.kde/socket-*
- ..../kde4/.kde/tmp-*

However I recommend backing up ..../kde4/.kde/share dir. It contains local settings for Kexi and any software you've used in the same environment that you're running Kexi in.

(EDIT: updated to the standard .../kde4/.kde/ location)


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
User avatar
inksi
Registered Member
Posts
77
Karma
0
OS
Hi,

That has been a great help, just struggling with getting rsync to do as is is told!

jstaniek wrote:However I recommend backing ..../kde4/inst/.kde4/share dir. It contains local settings for Kexi and any software you've used in the same environment that you're running Kexi in.


you mean

~/kde4/.kde/share/

unless we have different directory structures, and surely we don't?

many thanks
Ian
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The appropriate directory to backup can be determined using the following command:
Code: Select all
echo $(kde4-config --localprefix)/share


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
inksi wrote:you mean

~/kde4/.kde/share/

unless we have different directory structures, and surely we don't?

Yes it is, according to http://community.kde.org/Calligra/Building, I am sorry. This is the $KDEHOME variable. My location differs for historical reasons but I am trying not to mention this in the public, to avoid confusion :)


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]