The first step is to find out which, if any, package owns the /usr/share/libalpm/hooks/00-timeshift-autosnap.hook
file:
pacman -Qoq /usr/share/libalpm/hooks/00-timeshift-autosnap.hook
In my case, I get the following result:
scotty65's pacman -Qoq /usr/share/libalpm/hooks/00-timeshift-autosnap.hook
pacman -Qoq /usr/share/libalpm/hooks/00-timeshift-autosnap.hook
timeshift-autosnap-manjaro
If a package name is in the results then, as others have stated, you can just remove the package.
If no package owns the autosnap.hook
file, then you should be able to safely remove it:
sudo rm /usr/share/libalpm/hooks/00-timeshift-autosnap.hook
If you want to play it safe, save a copy of the file somewhere else so that it can be restored later if needed.
Also, I just looked at my paclog
output:
paclog --grep=timeshift | tail -10
[2025-05-19T09:34:51+1000] [ALPM] running '00-timeshift-autosnap.hook'...
[2025-05-19T09:34:51+1000] [ALPM-SCRIPTLET] ==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
[2025-05-19T09:41:37+1000] [ALPM] running '00-timeshift-autosnap.hook'...
[2025-05-19T09:41:37+1000] [ALPM-SCRIPTLET] ==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
[2025-05-21T00:16:05+1000] [ALPM] running '00-timeshift-autosnap.hook'...
[2025-05-21T00:16:05+1000] [ALPM-SCRIPTLET] ==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
[2025-05-25T16:38:22+1000] [ALPM] running '00-timeshift-autosnap.hook'...
[2025-05-25T16:38:22+1000] [ALPM-SCRIPTLET] ==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
[2025-05-25T23:24:42+1000] [ALPM] running '00-timeshift-autosnap.hook'...
[2025-05-25T23:24:42+1000] [ALPM-SCRIPTLET] ==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
paclog
is found in the pacutils
package
So, maybe you also need to check if you have the /etc/timeshift-autosnap.conf
file on your system. If so, make sure that the skipRsyncAutosnap
line is set to true
. This is my file which works without any issue (I do have timeshift
installed and run a daily backup via cron
):
scotty65's cat /etc/timeshift-autosnap.conf
cat /etc/timeshift-autosnap.conf
#
# /etc/timeshift-autosnap.conf
#
# skipAutosnap defines if timeshift-autosnap execution should be skipped.
# Default value is false.
skipAutosnap=false
# skipRsyncAutosnap defines if timeshift-autosnap execution should be skipped on filesystems other than btrfs.
# Default value is true.
skipRsyncAutosnap=true
# deleteSnapshots defines if old snapshots should be deleted.
# Default value is true.
deleteSnapshots=true
# maxSnapshots defines how much old snapshots script should left.
# Only positive whole numbers can be used.
# Default value is 3.
maxSnapshots=3
# updateGrub defines if grub entries should be auto-generated.
# If grub-btrfs package is not installed grub won't be generated.
# Default value is true.
updateGrub=true
# snapshotDescription defines value used to distinguish snapshots created using timeshift-autosnap
# Default value is "{timeshift-autosnap} {created before upgrade}".
snapshotDescription={timeshift-autosnap} {created before upgrade}