profile-image

sideshow

Simon Persson , Sweden

BoomBox

Audioplayers Jan 29 2014
Score 72%
72 Likes
28 Dislikes
Kup Backup System

System Software 203 comments

Score 81%
81 Likes
19 Dislikes
Jan 06 2018
Sorry, I have no idea what that means. I don't think I have ever created any gpg keys for this repo. - Dec 25 2017
You are probably right that it could be helpful. I have thought about it in the past but never pushed myself to do anything about it. Since many year I have a KDE dev account, but mostly unused. Thanks for caring! - Dec 25 2017
Ah, yes I see the same problem. I had previously not tested the plasma integration with a larger backup. I added a fix for it just now. Will be in the next release. Thanks! - Dec 25 2017
That really just sounds like you don't have write permission to that Work Files folder... but perhaps I'm wrong and there is something more to it, I don't remember exactly now but I think Kup will try to create any necessary folder first if it does not exist, so it could be related to that. - Nov 08 2017
Hello from Singapore! If you want to remove all existing backups then just do the simple thing and remove the whole folder. If you ever want to just remove old backups but not newer ones, then have a look at http://bup.github.io/man/bup-prune-older.html (no support for this in Kup yet) - Nov 08 2017
Sorry for the late reply, been busy. Glad to hear you got it working! Kup says that the backup plan has not been run until the first time it successfully completes a backup... like you said, it actually failed (Kup doesn't look into details of what went wrong, it could probably not decide anyway if any important file was not backed up) So any failure makes the whole backup not count as complete. I hope that makes sense to you and please let me know if you still think this part of kup could be improved. And thank you for the kind words! - Sep 26 2017
The requirements for bup has not changed, so you should be able to only upgrade bup itself and nothing else. If it was me I would just download the latest .deb file and double click on it. Can be found at https://packages.ubuntu.com/zesty/bup, download links at the bottom of the page. - Sep 21 2017
I did some more research and found that is a problem with backing up stuff stored on NTFS. Reported here: https://groups.google.com/forum/#!topic/bup-list/oL4t7tMhOzE

It does seem to me that it was fixed in version 0.29 of bup. Which version of bup are you using? - Sep 19 2017
When you create your backup plan with kup it will scan the folders you select for backing up and look for permission problems, showing a warning if it finds any problem. So, assuming that you didn't see any warning there, I don't think access permissions are causing the problem. Error number 22 seems more to do with invalid paths and such.. which seems not good at all. Any unusual character encoding used on your filesystems? Perhaps you can send the kup log file in a private message to me? - Sep 16 2017
Bup version 0.28 and newer have two new commands: rm and gc. With rm you can remove commits and with gc you can do the actual rewriting of the backup data without stuff that is now no longer needed. There is still no support in Kup for doing this automatically for you. I'm not sure if these commands are considered stable and well tested enough for me to start offering that in Kup. Perhaps could be done. I haven't had time to look at it anyway. It would of course be a very nice thing to have! - Apr 08 2017
Oh, sorry forgot to mention par2... That should be purely optional also. That is used if you want to create extra checksum info that can be used to possibly save a corrupted backup archive. Kup supports using that as an optional extra also. - Feb 15 2017
Oh, sorry forgot to mention par2... That should be purely optional also. That is used if you want to create extra checksum info that can be used to possibly save a corrupted backup archive. Kup supports using that as an optional extra also. - Feb 15 2017
I had a look and I see that ecsos' package lists python-xattr and python-pylibacl as requirements which I until now thought was correct. But if the "python-bup" package works (doesn't spit out errors) and you don't need to backup ACLs or other extended attributes of your files... then go for the slimmer version, why not... I would :). And another difference was that the first package also requires python-tornado which is only needed if you want to run bup as a webserver which you can connect to and see a file listing the backed up stuff in a webpage. That one is definitely optional so it's a bit unfortunate that ecsos' package says that it's required.
Hope this helps. - Feb 15 2017
Thank you for the feedback, must be frustrating for somebody who wants to use extended attributes if so many apps are not preserving them... :( I found some time to look at this now and indeed, for rsync it was as simple as you say, I had forgotten to include the -X flag. But for restoring with bup I didn't see any problem. And yeah, if you open a folder from the Kup restore tool then what you get is dolphin opening up the bup:// kioslave. Copying out the files from there will not preserve xattrs... don't know if that can be fixed. Sorry to say it but I don't think I will find time to look into that one. - Feb 15 2017
Oh, I really expected that to solve the problem for you. Uninstalling from /usr/local first should not be strictly necessary, just nice to keep a clean system.. :)

Because of your comments I had a look again at the build service and found that now it does actually produce .deb files for ubuntu 16.04 and 16.10. So, please try installing a deb from here:
http://download.opensuse.org/repositories/home:/simper:/kup/xUbuntu_16.10/amd64/kup_0.6.1-1_amd64.deb

Those files there used to be linked automatically from this page but now after moving from kde-apps.com to linux-apps.com it no longer works. I will try to provide a link in the description at least so that other people can find these software packages.
Thanks for not giving up! :) - Nov 08 2016
No, sorry... no deb package. I'm using opensuse's buildservice to create the packages but the KDE libraries are not available there (doesn't support packages from "universe" on the build service).

If I remember correctly the kcm modules will not be found if installed to /usr/local. I will update the README file with better instructions.... that you should run this instead:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release .. - Nov 07 2016
Try running "locate" to find the file... this is how it looks for me:

~ $ locate kcm_kup
/usr/lib/qt/plugins/kcm_kup.so
/usr/share/kservices5/kcm_kup.desktop
- Nov 05 2016
Actually, I just realized I have that list of ubuntu package names that are required:

cmake, extra-cmake-modules, libkf5coreaddons-dev, libkf5dbusaddons-dev, libkf5i18n-dev, libkf5iconthemes-dev, kio-dev, libkf5solid-dev, libkf5idletime-dev, libkf5windowsystem-dev, libkf5notifications-dev, libkf5config-dev, kinit-dev - Nov 04 2016
Hello! When building from source, check the README file for which packages needs to be installed. The names are not the exact ones used in kubuntu, for example the needed package "kidletime" is called " libkf5idletime-dev" in the ubuntu world. I hope this helps! - Nov 04 2016
I'm sorry for the late reply, but I don't really have much time for my laptop anymore, I have a child now.... Anyway, I didn't have anything wise to say about corrupted packfiles, I have not experienced any myself.
Thanks for the kind words! - Jun 13 2016
Just replying here so you get a notification that this has been solved in version 0.6.1. I really hope kup will work for you now! - Jun 13 2016
Thanks for the tip! I can see the value in fixing this... but I don't see how to do it. There is no mention of any runtim dependencies in the package files for debian/ubuntu, only lists the build deps. I guess the runtime deps are generated automatically when the package is built.
If you have any advice for how to correct it that would be good. My motivation for packaging is very low, looking back I can't really believe I managed to get these packages built, considering how time consuming, boring and frustrating it is.
- Oct 20 2015
Just sounds like the files have been corrupted beyond repair then... be happy you found out before you needed the backup! :) - Aug 19 2015
There is no built in support for any networked protocol. (As far as I know the only ones that could be possible would be rsync (for rsync backups.. duh) and ssh for bup backups.

That said, you can use FUSE to mount a remote location and then just configure Kup to use a folder
inside the remote storage while it is mounted.
I have never used anything like this myself but there seem to be fuse implementations available for ftp, listed at wikipedia: https://en.wikipedia.org/wiki/Filesystem_in_Userspace

Good luck! And please report back if there are any problems with getting this to work. - Jul 18 2015
Oh and I should point out that bup is the only solution I know of that can save permissions, executable or not, symlinks and hardlinks... even when you are saving to NTFS or FAT32 (which are common choices for external hard drives... so I think it is important!). And still you can very easily access any file from any backup (I mean different backed up versions of the same file) even though shared parts of files are only stored once.
In the description I do try to point out this advantage, not sure if I get the point across.. I find it a bit difficult to explain. - Jul 05 2015
Yes, it can do that! Default settings for a new backup plan will include all hidden folders and files in the user's home directory except cached files and trash.

You could have a point that this is worth pointing out explicitly. Thanks! - Jul 05 2015
Packages for Ubuntu are now available, please see the updated download links on this page!
Yay! - Jun 18 2015
That is the same problem you reported when running version 0.5.1, am I correct?

You are still the only one who has reported this problem, so I will have to rely on your help to troubleshoot. Like I said earlier, there is an alternative that I have already tested (for me it works just as well as the currently shipped solution), but I would like to confirm that it fixes things for you before shipping it. Please contact me if you are willing to try.

Thanks! - Jun 11 2015
My guess would be that the system settings plugin that kup provides (kcm_kup.so) is not installed in the directory where it is expected on your distro.
There is a matching kcm_kup.desktop file that apparently is found at least, that's why you see the icon in system settings.

You should be able to list the files installed by your package. Find the "kcm_kup.so" file, see which directory it gets installed into. Then check your system to see if all the other kcm_*.so files (settings plugins that ship with plasma and such) are in that same folder.

Hope this helps! - Jun 01 2015
Oh, I forgot to say that the bup:// kio will only work if you are using a file manager based on kf5. Neither Dolphin, Konqueror or Krusader has released any KF5 based versions yet, as far as I know.
For testing the ported bup kio I used gwenview as my filemanager... heheh.. it works! But you only get to see folders and image files in your backup. - Jun 01 2015
Again, I'm so sorry I have not been able to provide any deb for kubuntu. I really tried but since all kde packages seem to have been kicked out to universe now, then they are no longer possible to build on build.opensuse.org.

If somebody wants to try building a deb, you can use the .dsc, .rules, .control and .changelog files that I made here:
https://build.opensuse.org/package/show/home:simper:kup/kup-kf5

Perhaps that helps to get started with. And perhaps it's time Kubuntu included kup in it's repos... Kup has already been part of default installation of Chakra OS for a year now. - May 31 2015
Yes, try adding the following parameter when running cmake: -DCMAKE_INSTALL_PREFIX=/usr

Then if it still doesn't work, check where debian/ubuntu install the kcm_*.so files (kup should install it's kcm_kup.so in the same directory as all the other ones....)
If it is wrong you maybe need to add this to cmake also:
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON

I hate packaging. I spent more than three whole days trying to package 0.6.0 for opensuse, fedora, ubuntu and arch linux. Had to give up on ubuntu since the open build service does not allow dependencies on the "universe" repo in ubuntu.
So thank you for wanting to help! - May 24 2015
Yeah, so it's about how kup-daemon monitors the system for changes in mounted filesystems. That's why I was curious if you are running linux or something else. There is an alternative way to watch for these events on linux, but I don't want to make any changes without knowing that it fixes something. Maybe you can email me: simonpersson1 at -gmail- and we can see if we can test a new version on your system?
Thanks for not giving up. - Mar 15 2015
I'm not sure what would be a better way to inform about a failed backup. Please give an example!
If it is about listing the file names of files that did not get included, it would be tricky to scan though the output from bup to find file names, would probably not always work, would stop working when a new version of bup changes how it outputs that error info, etc. And this would not even be much better than the log file that exist today, would it? - Feb 28 2015
Wow, that's a lot of data... I can see that you may have the need to control in more detail what gets backed up... I will think some more about if there is some good way to improve the current configuration options. Please continue to suggest improvements! :)

And yes, I am aware of this problem of small temporary files coming and going while taking a backup. Most of the times the user would not care if that file got included or not.
But it's difficult to make kup intelligent enough to say that "meh, the user probably didn't care about that file... let's continue backing up and report that everything went fine anyway"
And having hidden folders in the users home folder included by default seems like a good default to me, I think many users want to be able to restore settings for their applications.
So... I'm thining that perhaps the best option now is to have some more common cache folders excluded by default. If anybody has suggestions for common folders that should be excluded, let me know! - Feb 28 2015
So yeah... Hmm... Obviously these things work for me, don't know what could be going on with your computer. I don't even have much of intelligent questions to ask you. Since you haven't said anything about your external hard drive I assume you are using some standard file system on it, not some fancy encrypted drive or such? And you are running linux? In general, is there something not "standard" about your system? - Feb 28 2015
You mean that kup does not detect the destination as available? In other words, that it does not offer you the option of taking a new backup?

And then, you are having two separate problems?

One, sometimes you cannot see your external drive in the Kup configuration, under "external storage" destination option. Any idea here what can have changed from one time to the other?

Second, instead of "external storage" destination you configure /media/user/Backup under "filesystem" destination, but then it only works the first time after configuring (with the drive available), second time (unplugging and plugging the hard drive back in again) it does not find it to be available there.
Is the /medía/User/Backup a symbolic link or is it a folder?


Please correct me if I misunderstood something, or confirm that my understanding is correct..

Thanks! - Feb 07 2015
Looks like you don't have permission to read those hidden folders in your home folder. Suggest you use a file manager to find out what permissions are needed to open those folders. - Feb 02 2015
Thanks for your ideas!

I'm thinking that this is still a bit beyond the scope and intended user level for kup. If you want to avoid new files and folders getting included in your backup my suggestion is to uncheck your home folder and then select only the subfolders under your home folder that you want to include. Not a perfect solution, I know. Any files directly in your home folder would be excluded in this example.

I think that for most people storage is cheap enough to not worry so much about the exact files that gets backed up, can include some dead weight without any real problem. - Feb 02 2015
It usually means that there are files that you have selected to back up but you don't have access to read. If you are using version 0.5 you can read the log file for more detailed error messages. Just click on the system tray icon, select your backup plan and then "view log file".
Hope this helps! - Nov 26 2014
These files are linked automatically, seems not to have synced/updated the links yet. Nothing I can do, sorry.

But thanks for posting a working link! :) - Oct 26 2014
Nope. And I myself have no plan of adding it, but sure... I could very well accept it if someone did implement support for that.
I'm thinking of adding direct support for samba shares, just to make it simpler to setup.
- Jul 27 2014
Hello!

Thanks for the kind words. I added logfile function in may, will be in the next feature release... whenever that may happen.
https://github.com/spersson/Kup/commit/3cc45991977e58cdae7b98bc1640ca3e8b70a941

- Jul 27 2014
check out
http://chakraos.org/news/index.php?/archives/127-Chakra-2014.05-Descartes-released.html

woohoo! - May 22 2014
Did you figure out this problem? Or gave up on it?
I did not reply before because I don't have anything intelligent to say, I still don't! :) Kup uses the same method for listing files and folders as so many other kde and qt program does.... can't understand why one would work and not the other. Sorry to say that I don't even know where to begin looking for the problem.

Just curious now if you fixed it, that's all...
Thank you very much for reporting in any case! If anyone else experience this, please post a "me too!" comment here. - Apr 24 2014
Sorry for the late reply! I've been busy...

Anyway, this looks like some issue with your networked filesystem, maybe permissions missing?
Perhaps you can try from the command line to "cd" into your networked filesystem and run "touch me" there... see if you are allowed to create a file called "me". If that works then try "bup -d . init" and see if you get the same error. Sorry that I can't give you any better help than that, need to just start with the basics! :) - Apr 24 2014
The only reason I can think of why this would happen is if your user account does not have read access to the filesystem root. Which would be very odd. - Feb 18 2014
The issue is that the programs that actually performs the backup (rsync or bup) don't use KDE libraries. Making my own backup logic (actually copying stuff) on top of KIO is not an option, too much work. Instead one option could be to add logic to Kup for mounting SMB or some other fuse-filesystem automatically for you. I have not looked into this, just thought of it now.
I will research this more, when I get time... - Feb 07 2014
Oh, you mean for the backup destination? The only way that could work would be by mounting the smb share with a fuse-filesystem (check out smbnetfs or fusesmb).
Then you can just select "filesystem" as the backup destination and select where on the server you want to store the backups. This should work for both synchronized (rsync) and archive (bup) type of backups. The only requirement is that the shared folder always gets mounted in the same place in your local filesystem.
I hope this helps! If you figure out how to make this work, please share your experience here.. especially if there was anything tricky to get right. I'm sure there are more people who wants to use SMB! - Feb 05 2014
Hehehe.. thank you. :)
I created this thing because I think there should be a simple and well-integrated backup solution installed by default with KDE desktop distros, but there was none to be found.
Despite me being quite shy to promote my own stuff there could be something changing soon... ;-) - Feb 05 2014
Krusader

System Software

Score 86%
86 Likes
14 Dislikes
Sep 02 2009