Timeshift: no snapshot shown [SOLVED]

What about that 2nd pacman.conf file: delete manually?

I don’t see a second pacman.conf. The other one is pamac.conf

1 Like

Oops, sorry, my mistake.

1 Like

OK, I am a bit confused now.

After my upgrade, I created a snapshot via the terminal, and here is the out put:

image
That last sentence suggests to me it did not manage to make the snapshot.

I opened the Ts interface, and lo and behold, I have 3

  • the original one
  • one made after my reboot this afternoon
  • one made with the terminal !!!

They all look OK in the GUI. Is the last one OK or not?

image

1 Like

re stale mount

teejee2008 commented on 30 Jun
Timeshift now mounts devices to a temporary folder and unmounts the folder after use. Sometimes the temporary folder cannot be unmounted since the device is still busy. It will be unmounted in the next run. This message can be ignored.

All in all use konsole for timeshift actions
sudo timeshift --create
sudo timeshift --restore
sudo timeshift --list
(sudo timeshift --delete)

if you you use GUI and fails the next console command deletes the incomplete operation

2 Likes

Good to know, thanks!

I was amazed by the speed of the snapshot creation via the terminal compared to via the interface.

For me it will be via the terminal from now on! Is there a way to automate that?

It specifically states it was successful. As for the speed rather Terminal or GUI it’s typically less than 5 seconds.

2 Likes
#!/bin/bash
cmd=(dialog --separate-output --checklist "Select Timeshift options:" 22 76 16)
options=(1 "Create" off    # any option can be set to default to "on"
         2 "Restore" off
         3 "List" off
         4 "Delete" off)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
clear
for choice in $choices
do
    case $choice in
        1)
            echo "First Option"
            sudo timeshift --create
            ;;
        2)
            echo "Second Option"
            sudo timeshift --restore
            ;;
        3)
            echo "Third Option"
            sudo timeshift --list
            ;;
        4)
            echo "Fourth Option"
            sudo timeshift --delete
            ;;
    esac
done

It is a very primitive bash script to minimize typing. Save it beetween the 2 ``` as ts.sh in home of user for example.
chmod 755 ts.sh
You may Add a Command in Keyboard / Application Shortcuts
xfce4-terminal -e “bash -c /home/user/ts.sh;bash”
and press a keyboard combination CTRL/ALT/I (eg.)
It is for XFCE. You will know what terminal you use. Terminology I also like because it is X-compatible and can be customised as well. Note the script is only a prototype. Selection is done by space after number. Multiple selections have no sense IMHO
Another step ahead would be by crontab which is a scheduled task control.

1 Like

in order to timeshift restore from gui you need to downgrade glib2 version. Once this is done timeshift will regain functionality
image

1 Like

Yes, but downgrading is not recommended because it carries a risk, as dalto explained. And since we don’t know when there will be a fix, I’d rather not run that risk.

I’ll run Ts from the terminal, which is much faster anyway.

2 Likes

If I understand you well, this is a script that you need to activate each time you want to run Ts; it does not run automatically. Correct?

Just wanted to say that Timeshift doesn’t work well at all lately.
I also had the problem with snapshots not showing a few weeks ago but it was working again after updating the system.
Yesterday I could neither delete old snaps nor create a new one, TS was constantly crashing after running for about 20 seconds.

2 Likes

Yes. This script is a menu for manual actions.
ts
I initiate it with a keyboard shortcut Ctrl/Alt/I
If you rely on Scheduled snapshots use something like that
scheduled_timeshift
this schedule can be seen in
/etc/cron.d/timeshift-hourly

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=“”

0 * * * * root timeshift --check --scripted

2 Likes

That’s good to know, thanks for letting me know. I’ll see how it goes with creating snapshots via the terminal.

1 Like

I have the same problem

Apparently it is something to do with glib2, which the devs are aware of and will tackle.
Rather than downgrading (= risky) I will run Ts via the terminal.
That is the conclusion I have come to.

So, for other users who encounter this problem, the steps to take are:

  1. if you have installed Timeshift, uninstall and install yay -S timeshift-bin
  2. set the Settings as per your preferences
  3. enable a running cron: sudo systemctl enable --now cronie

Timeshift should not start creating snapshots as per your settings. You might need a restart of Endeavour.

If the automatic snapshots still are not done, create them by running Timeshift via the terminal: timeshift --create. To see all the options possible: timeshift --help.

2 Likes

Ya after installing and uninstalling timeshift a few times a few weeks ago I gave up. I thought it was some sort of GUI timeshift bug. I just been using clonezilla since then… Good t know exactly what the problem is now at least. So Timeshift via terminal is fine seems from what you guys are saying …

I wonder if something like backintime could do most things that timeshift can. Perhaps not for BTRFS snapshooting?

https://backintime.readthedocs.io/en/latest/

Interesting. Some remarks/observations.

This kind of package for me would be to restore the system files in case my computer gets messed up irrecoverable.

One has to indicate which files to include, so that is all system files. In Ts the only ones that are excluded are /home/username (which I understand) and / (root - I don’t understand why).

So, the file system files presumable include everything in the highlighted folder below, except home, though I don’t know where root is.

image

Note that on the Github page there are some 250 open issues, which seems quite a lot to me.

BTW, @s88, @NX-01, Ts is now making snapshots automatically for me, perhaps because I enabled cronie, as told by @dalto.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.