Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Timeshift not automated  (Read 4308 times)

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
[EN] Timeshift not automated
« on: 2020/01/02, 10:56:04 »
Anyone using Timeshift to do system images? I recently put together a new machine and for the life of me I can't get Timeshift to do scheduled Snapshots. They work fine manually. Researching the issue did not really help. I would love to set up a systemd.timer to do the job as I do for backups with Backintime, but due to the structure of Timeshift that is not an easy task. Everything worked fine on the old box and the setup using rsync is not really error prone. I am totally out of ideas, so any thought-provoking input is highly appreciated.

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #1 on: 2020/01/02, 17:30:50 »
@devil


can you see the gui screen after running timeshift-gtk in a terminal ?
I have no problem using the settings screen and schedule the backup frequency  that I want

regards
pjnsmb

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Timeshift not automated
« Reply #2 on: 2020/01/03, 10:16:54 »
That is not the problem, the GUI works just fine and I can set a schedule, It is just not honored. No automated daily snapshots are made. No cron errors either in systemctl.

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #3 on: 2020/01/03, 11:45:38 »
@devil
Are you using timeshift from apt or from git ?
I am running 19.08 from :
https://github.com/teejee2008/Timeshift/releases


installed by dpkg -i


 for daily and weekly backupswithout any problems but not using systemctl
regards
pjnsmb

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Timeshift not automated
« Reply #4 on: 2020/01/04, 06:58:11 »
Until now I am using the version in Debian, will try the version from git and see if that changes anything. Just looked at the settings in timeshift.json and they seem a bit off. Here is my settings in the GUI:
https://i.imgur.com/SkM5z4y.png
The corresponding file is:
Code: [Select]
{
  "backup_device_uuid" : "",
  "parent_device_uuid" : "",
  "do_first_run" : "true",
  "btrfs_mode" : "false",
  "include_btrfs_home" : "false",
  "stop_cron_emails" : "true",
  "schedule_monthly" : "false",
  "schedule_weekly" : "false",
  "schedule_daily" : "false",
  "schedule_hourly" : "false",
  "schedule_boot" : "false",
  "count_monthly" : "2",
  "count_weekly" : "3",
  "count_daily" : "5",
  "count_hourly" : "6",
  "count_boot" : "5",
  "snapshot_size" : "0",
  "snapshot_count" : "0",
  "exclude" : [
  ],
  "exclude-apps" : [
  ]
}
Could you compare this to yours please?

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #5 on: 2020/01/04, 09:43:58 »
@devil


my timeshift.json file is identical to yours


my GUI is not ticked for startuo/boot


I have a file timeshift-hourly in /etc/cron.d (attached)


there are no other files referring to timeshift in the other /etc/cron files


any help in https://github.com/teejee2008/timeshift/issues ?







[/size][size=78%]  [/size]
regards
pjnsmb

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Timeshift not automated
« Reply #6 on: 2020/01/04, 14:18:55 »
Thanks for comparing the files. I know about the hourly cronjob. That is ok the way it is, it just checks on an hourly basis if there is anything to do. I guess I will have to ask on GitHub, even though answers are quite slow.

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #7 on: 2021/08/24, 18:34:36 »
@devil

Do you still use Timeshift ?
For your information this is the main part of a new issue I've started on Timeshift github  Issue number #785 :

' Running debian sid the latest update to the util-linux package brings a successful update to the following packages :
util-linux bsdextrautils bsdutils eject fdisk libblkid1 libfdisk1 libmount1 libuuid1 mount rfkill util-linux
These update from 2.36.1-8 to 2.37.2-1 without a problem .

As soon as I update libsmartcols1 from 2.36.1-8 to 2.37.2-1 when I run Timeshift it starts with -
Live USB mode (Restore only) Device not found UUID: xxxx '

Thus I loose the ability to do a new snapshot.

Are you having the same problem ?

regards

pjnsmb

regards
pjnsmb

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Timeshift not automated
« Reply #8 on: 2021/08/24, 19:34:21 »
I am still using Timeshift and the problem has fixed itself with  a fresh install on a new machine, without me knowing what the problem was in the first place.

Here, libsmartcols1 is on 2.37.2-1. Just checked Timeshift. Automatic snapshots stopped August 19th. When I open Timeshift, I get the same message as you. So yes, it is broken for me as well. Thanks for noticing. I will add myself to your issue on GitHub.

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Timeshift not automated
« Reply #9 on: 2021/08/25, 23:15:32 »
There is a new version of timeshift in the upgrade that fixes the issue with util-linux.

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #10 on: 2021/08/27, 06:46:48 »
@devil

And for anyone else using Timeshift ..........
As you say on github it appears that daily or other scheduled backups are not working after the update.
regards
pjnsmb

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #11 on: 2021/08/27, 07:16:52 »
I have reopened debian bug #992921 that started 25th August and solved the initial problem with the update to 20.11.1-1.1

regards
pjnsmb

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Timeshift not automated
« Reply #12 on: 2021/08/27, 10:53:31 »
Thanks for that. Let's see what comes from it.

Offline pjnsmb

  • User
  • Posts: 88
Re: Timeshift not automated
« Reply #13 on: 2021/08/30, 09:40:07 »
@devil
I've put another comment on to github :

'Mysteriously my daily and weekly syncs are being completed automatically again for the last few days.
Anyone else finding this too before I close this ? '

regards
pjnsmb