* Adam Porter <[EMAIL PROTECTED]> [071109 13:18]: > On Nov 1, 2007 7:03 PM, Micah Anderson <[EMAIL PROTECTED]> wrote: > > * Adam Porter <[EMAIL PROTECTED]> [071102 00:56]: > > > Package: backupninja > > > Version: 0.9.4-6 > > > Severity: wishlist > > > > > > --- Please enter the report below this line. --- > > > I don't always have my system powered up when backupninja is set to run my > > > local rdiff-backup backup. It would be nice if backupninja could use > > > Anacron, or some Anacron-like logic, so I could specify a frequency > > > of "daily" or "every 24 hours," and then have backupninja run it if that > > > much > > > time has passed since the last backup was run, regardless of what time it > > > is > > > at the moment. > > > > > > Hi, > > > > Please correct me if I misunderstand you, but I believe that this > > functionality already exists in backupninja. > > > > The backupninja cron runs every hour and although the default value for > > 'when' in /etc/backupninja.conf is "everyday at 01:00" you could change > > that to be something that works for you, such as: when = hourly, or > > specify multiple 'when' options so that the backup will fire at a time > > that you are likely to have your laptop on (if multiple 'when'options > > are present, then they all apply). See backup.d(5) SCHEDULING section. > > > > Or, you could use anacron with a job that on wakeup of your laptop > > simply does a backupninja --now. > > I don't necessarily want to run backupninja every hour, or even more > than once a day. I simply want it to run if it's been 24 hours or > more since the last time it was run. Running rdiff-backup can be CPU- > and IO-intensive. I have manually niced and ioniced it down, but we > shouldn't expect users to have to do that. I don't need or want it to > run that often, anyway.
The only solution I can think of is to write a cronjob that checks the timestamp on the backupninja.log file and if its been 24 hours, then initiate a backup immediately. This isn't likely to be functionality added to backupninja. Most people want their backups to run at night, typically because of the resources required to do the backup itself slow down normal work (disk, cpu and bandwidth) and you dont want that happening while you are trying to get things done. If you have something setup to just run 24 hours after the last backup, you are eventually going to skew into having a backup run right in the middle of the day when its inconvenient. I think there really isn't a solution to this that would work for every person's vast and varied schedule, except for individuals to schedule the time for the backup that works best for their situation. If you put your laptop to sleep every night, then once a week just remember not to put it to sleep so a backup can run, or whatever you are comfortable with. If you can come up with a good mechanism, I'm happy to include it, but from where I am sitting this smacks me as a technical solution to a non-technical problem. > And I don't think running --now on wakeup of a laptop would > necessarily be a good idea. If someone sleeps and wakes their laptop > several times a day... I agree. The problem is I can think of a solution that wont work for at least someone. Micah
signature.asc
Description: Digital signature