
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Here's a 'set it and forget it' backup system which might look rather familiar to the backup solution supplied with a certain well-known fruit based computer.It comes with a configuration interface for KDE's plasma desktop.
Please see the Wiki at https://sourceforge.net/p/ktardis/wiki/Home/ for installation instructions as there are dependencies you might need to install:
(On Kubuntu sudo apt-get install libfilesys-df-perl libdatetime-perl libdate-manip-perl)
8 years ago
Version 0.07 fixes a bug that was preventing the widget from starting
Version 0.06 adds improved error handling and a stats display. NOTE: It also adds a new dependency on libdate-manip-perl.
Version 0.05 adds a real-time display of backup progress and one or to small tweaks.
Version 0.04 fixes a bug where when backing up over SSH, the disc would eventually fill up because the maximum used discspace percentage wasn't working
8 years ago
Version 0.07 fixes a bug that was preventing the widget from starting
Version 0.06 adds improved error handling and a stats display. NOTE: It also adds a new dependency on libdate-manip-perl.
Version 0.05 adds a real-time display of backup progress and one or to small tweaks.
Version 0.04 fixes a bug where when backing up over SSH, the disc would eventually fill up because the maximum used discspace percentage wasn't working
weits
8 years ago
When I press the button "Backup now" from Tardis widget pop-up everything goes fine.
But the scheduled backups never succeeds and in log there is this:
rsync is running......
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
Report
fatg3rman
8 years ago
When you use the 'Backup Now' button, the rsync process is started by the widget, within the KDE desktop environment, so ksshaskpass does work in that circumstance (although I'm actually surprised that it does).
The scheduled backups run as cron jobs - completely outside of the desktop environment - so have no access (or knowledge of) KDE wallet. I don't believe it's possible to make this work.
Report
weits
8 years ago
Report
fatg3rman
8 years ago
Report
weits
8 years ago
And what about to make some option in configuration to use the widget for the sync? The default behavior would be not to use it.
This tool is the only backup I was able to run. It is really great one! I would like to help you but I can't code :-(.
Report
fatg3rman
8 years ago
I suggest you use a public key with no password, this is the supported configuration.
Report
avlas
8 years ago
I tried to update to the new version but unfortunately I didn't get it to run, it seems there is some issue and the plasmoid is not initialized correctly. If I achieve to know about the problem, I'll post it here...
On the other hand, I realized that the cron job tries to find and run TARDIS.pl in a wrong path (at least in my case): /usr/share/kde4/apps/plasma/plasmoids instead of ~/.kde/share/apps/plasma/plasmoids
Report
avlas
8 years ago
I just created a dummy empty stats.log file and this solved the issue
I also realized of the problem with existing /tmp/tardispipe file, and wondering whether this could be workaround somehow as well...
Report
fatg3rman
8 years ago
The issue with it adding the cron job in the wrong place is strange, since the path is read from a system call. I guess on your system it must be returning the system plasmoid path and not the actual installed path. Can you tell me which distro and which KDE version you're using and I'll look into it. Thanks.
As for the /tmp/tardispipe thing - you should only see this if plasma crashes (or if the applet fails to initialise due to a missing stats.log :) ). Unfortunately I can't think of a way round it at all.
Report
avlas
8 years ago
Regarding how to deal with external drives, maybe you could borrow some code from kup, the way kup handles it is amazing (http://kde-apps.org/content/show.php/Kup+Backup+System?content=147465)
BTW, Tardis has a lot of potential, I wonder if there is a place to see a roadmap and/or to make feature requests...
Report
fatg3rman
8 years ago
Did you install from the PPA or from a zip file? If you installed from the PPA then the path is correct.
This new version should fail gracefully if the removeable drive is not present, provided the mount point also doesn't exist when the drive is not mounted.
As for roadmaps, I don't do roadmaps :) This is a thing I do because I wanted it and it will get worked on as and when I come up with ideas. Feel free to make feature requests over at the Sourceforge Page:
http://sourceforge.net/projects/ktardis/
Report
avlas
8 years ago
What is expected behavior if a backup takes too long to finish and new backup is scheduled before the first has finished? I may be in that situation and what I see is that second backup is skipped silently.
About roadmap, yeah, I understand, I was just wondering wether you already have some ideas in mind for future versions...
The nice feature in kup that I mentioned is that it detects when the external drive is connected, and even unmounted if the time since last backup is longer than scheduled, kup starts a new backup (or alternatively, depending on configuration, it asks about starting a new backup). If I have some time, I might take a look to see how easy/difficult it would be to add this feature...
Sorry if I bother you too much, I like tardis a lot, and hopefully my comments can help to improve it a bit
Report
fatg3rman
8 years ago
It sounds as if maybe your system has got confused as to where tardis is installed. Try:
plasmapkg -r tardis (to remove the zip version)
sudo apt-get purge plasma-widget-tardis
then reinstall the zip version. You won't lose your settings by doing this.
If a backup is already running when another one starts the new one will fail silently (The cron job checks to see if another one is running, and exits if so). This is how I want it to work - otherwise you can get into a situation where no backup ever completes because they are constantly being restarted. The difficulty with tardis is that the plasma widget and the actual backup script are completely separate and the amount of control one has over the other is very limited (I wrote the perl backup script long ago). If you know any python then you probably know more python that I do :) so any suggestions are welcome.
Yeah I don't want to get all professional about this with roadmaps and the like. :) To be honest I thought it was finished when I released version 0.03 but then I had more ideas. I don't really know what I'll add next, and that's kind of the fun of it. Feature requests are welcome. The SSH backup idea came from a feature request.
Tardis will detect if the backup destination directory doesn't exist. Thus if your external drive is mounted at /media/External and your backups go in /media/External/Backups then Tardis will report an error if the drive is not connected - the widget icon should change to a red circle with a !.
Report
avlas
8 years ago
btw, wondering if tardis deals with backups that are done in an external drive and at the time of scheduled snapshot the drive is not connected...
Report
fatg3rman
8 years ago
As for the disc not being connected, I'm working on some improvements in that area. At the moment, IIRC, you won't get any notification if the backup fails for any reason. That's on my to-do-list for the next version.
Report
weits
8 years ago
Report
fatg3rman
8 years ago
I have absolutely no ability at creating icons. The current one was downloaded from somewhere on the web. So yes I'd love to make a lighter one, but I don't have any idea how I'd manage it. I accept contributions :)
Report
weits
8 years ago
Report
fatg3rman
8 years ago
Report
Contrast
8 years ago
Report
Contrast
8 years ago
Report
Contrast
8 years ago
Report
Rendering
8 years ago
Report
fatg3rman
8 years ago
Try searching for TARDIS on the widget installer - it should be available through "Get New Stuff" (or whatever they've decided to call it this week).
Otherwise you could just try renaming the .zip file to a .plasmoid file.
Or you could try 'plasmapkg -i tardis-0.04.zip'
If none of those work then I'm afraid I can't help you. It works on Kubuntu 11.10 with KDE 4.7. I guess the KDE guys have changed something again. I really wish they would make a decision and stick to it, it annoys the living **** out of everyone,
Report
ivancukic
9 years ago
It would be better to change it now, than to receive a IP breach notice.
Cheerio!
Report