[Whislist] Let Sbackup use anacron over cron

Bug #106153 reported by Oumar Aziz OUATTARA
4
Affects Status Importance Assigned to Milestone
sbackup
Fix Released
Medium
Oumar Aziz OUATTARA
sbackup (Ubuntu)
Fix Released
Undecided
Oumar Aziz OUATTARA

Bug Description

Binary package hint: sbackup

The goal is to have the backup done even if the computer is off at the time specified.

Use case :
I have set sbackup to make a daily incremental backup at 08:30 PM but at this time I have my computer shut down. when I restart it the day after at 9:00 AM sbackup makes the backup with the right date Tag.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Here is my patch for that functionality :

Changelog :
=======

* GUI changes :
  * added 2 radio boxes ('simply' and 'precisely' on the Time Tab ) 'Simply' will use anacron, 'precisely' will be the old behaviour

* simple-backup-config :
  * Code cleaned to prevent warnings about non existing GTK components : see Bug #106818
  * To use anacron, sbackup craetes a link to /usr/share/sbackup/sbackup in /etc/cron.daily/ /etc/cron.monthly/ /etc/cron.weekly/ /etc/cron.hourly/ if anacron option has been chosen

* Created a sbackup script to install in /usr/share/sbackup/sbackup (this script is almost the sme created by sbackup in /etc/cron.d/

* Makefile :
  * add a flag to create non existing dirs
  * install the "sbackup" script in "/usr/share/sbackup/sbackup"

Please check and apply that patch .

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

New patch including the last one and :

* the python files have been rename in *.py and the Make file has been changed to be compliant (links are created into BIN without the py extention)
* A bug about a non removal of a cron link when switching to "Never" in the time Tab has been corrected.

Revision history for this message
KyleYankan (kyleyankanich) wrote :

How does one install the patch? *newbie*

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

In fact I didn't meant it to be install by users, it was for the developper to apply on the source file and to release it like an update.

But since he is not responding, I'll try to package it myself and put it here so that you can use it will waiting for an official fix.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Here is the binary package, just install it and report here if the bug still persists.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

please uninstall the first deb I've put in here if you already installed it .

The last one has 2 bugs :
* you needed to click twice on the recommended setting radio button to select it.
* It doesn't do the backup cause of a missing library (launch "sudo sbackupd" to see if you get an error message, if so , remove sbackup and install this package ).

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Format: 1.7
Date: Fri, 20 Apr 2007 00:20:53 +0200
Source: sbackup
Binary: sbackup
Architecture: source all
Version: 0.10.3-0.2
Distribution: unstable
Urgency: high
Maintainer: Aigars Mahinovs <email address hidden>
Changed-By: Aziz Ouattara <email address hidden>
Description:
 sbackup - Simple Backup Suite for desktop use
Changes:
 sbackup (0.10.3-0.2) unstable; urgency=high
 .
   * GUI changes :
   * added 2 radio boxes -simply and precisely on the Time Tab -.
     Simply will use anacron, precisely will be the old behaviour
 .
   * simple-backup-config :
   * Code cleaned to prevent warnings about non existing GTK components :
     see Bug #106818
   * To use anacron, sbackup creates a link to /usr/share/sbackup/sbackup
     in /etc/cron.daily/ /etc/cron.monthly/ /etc/cron.weekly/
     /etc/cron.hourly/ if anacron option has been chosen
 .
   * Created a sbackup script to install in /usr/share/sbackup/sbackup
   (this script is almost the sme created by sbackup in /etc/cron.d/
 .
   * Makefile :
   * add a flag to create non existing dirs
   * install the "sbackup" script in "/usr/share/sbackup/sbackup"
 .
   * the python files have been rename in *.py and the Makefile has been
    changed to be compliant -links are created into BIN without
    the py extention-
Files:
 f297066cb057fe9473e49e69b6873780 267 admin optional sbackup_0.10.3-0.2.dsc
 fbdaef62ac94e7bb95c274d338ec7f80 73220 admin optional sbackup_0.10.3-0.2.tar.gz
 a883bf07b60c7a836d47e4819a607ee5 65950 admin optional sbackup_0.10.3-0.2_all.deb

Revision history for this message
Fabio Marzocca (thesaltydog) wrote :

I installed sbackup (0.10.3-0.2) in place of the one released with ubuntu Feisty, but this new version doesn't even start.

Launching from terminal:
 gksudo simple-backup-config

nothing happens...

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

You're right :-p . That's due to my packaging incompetence.

To see the problem :

~$ dpkg -L sbackup

~$ which simple-backup-config

~$ file `which simple-backup-config`

And here you see a very weird link :-p

Here is a fix (just reinstall it )

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

I forgot to join the sources

Changed in sbackup:
status: Unconfirmed → Fix Committed
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :
Changed in sbackup:
assignee: nobody → wattazoum
status: Fix Committed → In Progress
Revision history for this message
Aigars Mahinovs (aigarius) wrote :

Please do not ue these patches unless you want to help in the development and can handle problems with untested software.
I am currently reviewing the patches, they look like they have good solutions to the problems we have and that a new release of SBackup for all versions of Ubuntu, Debian and other distros is imminent after these fixes are integrated and tested.

Changed in sbackup:
importance: Undecided → Medium
status: Unconfirmed → In Progress
Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Fixed upstream

Changed in sbackup:
status: In Progress → Fix Committed
status: In Progress → Fix Committed
Changed in sbackup:
assignee: nobody → wattazoum
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.