I figured out a way to make it work for anyone else who may need it:
Step 1: Create the timeshift.timer File
- Open a terminal and create a new file for the timer:
sudo nano /etc/systemd/system/timeshift.timer
- Paste the following content into the file:
[Unit]
Description=Timeshift - systemd snapshot timer
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.target
This will run the timer every hour. You can adjust the OnCalendar value if you’d like a different schedule (e.g., daily or weekly).
- Save and exit.
Step 2: Create the timeshift.service File
- Now, create a service file to run Timeshift automatically:
sudo nano /etc/systemd/system/timeshift.service
- Paste the following content into the file:
[Unit]
Description=Timeshift - systemd snapshot service
Wants=timeshift.timer
[Service]
Type=oneshot
ExecStart=/usr/bin/timeshift --check --scripted
[Install]
WantedBy=multi-user.target
- Save and exit.
Step 3: Enable and Start the Timer
- Reload systemd to recognize the new service and timer files:
sudo systemctl daemon-reload
- Enable and start the timer:
sudo systemctl enable --now timeshift.timer
- Verify that the timer is active:
systemctl status timeshift.timer
I don’t know if it’s the best way, but it works and I made sure to test that it works after rebooting it and it does.