https://github.com/l3odr0id/simpliest_backup
https://github.com/l3odr0id/simpliest_backup
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/l3odr0id/simpliest_backup
- Owner: L3odr0id
- Created: 2024-03-31T09:48:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-07T16:53:09.000Z (over 1 year ago)
- Last Synced: 2024-11-21T15:04:43.231Z (11 months ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The simpliest backup
These utilities will help you to zip some folder every night and keep a specified number of archives.## How to use
1. `git clone https://github.com/L3odr0id/simpliest_backup.git`
2. Set required absolute paths in the `config` file
3. Run `bash save_zip.sh` to chek if the paths exist (and run the backup once)
4. Run `sudo bash start_systemd_timer.sh` to schedule the `systemd` timer to run the backup at 02:28 AM once a dayP.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`