These utilities will help you to zip some folder every night and keep a specified number of archives.
git clone https://github.com/L3odr0id/simpliest_backup.git
- Set required absolute paths in the
config
file - Run
bash save_zip.sh
to chek if the paths exist (and run the backup once) - Run
sudo bash start_systemd_timer.sh
to schedule thesystemd
timer to run the backup at 02:28 AM once a day
P.S.
Check if timer is actually running using systemctl --user list-timers
Check service logs systemctl --user status sched_backup.service
Start service one (to debug) systemctl --user start sched_backup.service
To restart service systemctl --user restart sched_backup.service
- without sudo
To restart systemd daemon systemctl --user daemon-reload