Alternative trigger for auto-remove

Asked by Thomas Maeder

Auto-remove is very handy when backing up to a device that correctly reports the disk quota.

Devices that don't tend to get filled up with old backups rather fast, though.

An alternative trigger for auto-remove (e.g. once per day/week/month/year) would be very helpful.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu backintime Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
daniel CURTIS (anoda) said :
#1

Hello Thomas. If I understand correctly You want to auto-remove some apps once per day, week etc., right? If yes, there is an interesting program called: "cron-apt". By default, 'cron-apt' will execute automatically at 4am. you can either edit /etc/cron.d/cron-apt and change this settings. You can automatically update packages with 'cron-apt' (which is usig 'apt-get') but that's not all.

Of course, You can instruct it to run anything that you can do with 'apt-get' -- such as removing applications (e.g. 'apt-get --purge remove app_name', 'apt-get purge app_name' and so on). 'cron-apt' can optionally send mail to the system administrator on errors, log to syslog or a separate log file.

Generally, I think that the best option for an alternative for auto-remove (once per day, week etc.) is a system 'cron' with speciall script to do such task or 'cron-apt'.

I hope that it will help You somehow. Best regards.

Revision history for this message
Thomas Maeder (maeder+launchpad) said :
#2

No.

I want *backintime* to be able to periodically apply its auto-remove feature.

My request is completely unrelated to apt.

Anyway: thanks for the reply.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Cron the task as root. It can run when you desire.

Revision history for this message
Thomas Maeder (maeder+launchpad) said :
#4

How do I induce backintime to do an auto-remove using a cron job?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

What is the command to run?
When do you want to run it (Time / Date etc)?

Revision history for this message
Thomas Maeder (maeder+launchpad) said :
#6

> What is the command to run?

This was my question to you.

I don't think that there is an answer, because backintime lacks the feature. Which is my original question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Seems it goes into the crontab, so you could run:

crontab -l

To see.

Revision history for this message
Thomas Maeder (maeder+launchpad) said :
#8

Sigh.

I know how to setup cron jobs.

What command does a cron job need to cause backintime to do an auto-remove?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

It should be added by the GUI when you use it. This is my point.

Revision history for this message
Germar (germar) said :
#10

There is no command to only run auto-remove in BackInTime. It will run every time after a new snapshot was done.

Please fill a feature request on GitHub https://github.com/bit-team/backintime

Can you help with this problem?

Provide an answer of your own, or ask Thomas Maeder for more information if necessary.

To post a message you must log in.