Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmiddha/linux-mirrors-sync
https://github.com/bmiddha/linux-mirrors-sync
archlinux centos debian linux linux-mirror mirror mirroring rsync systemd systemd-service systemd-timer ubuntu
Last synced: about 21 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/bmiddha/linux-mirrors-sync
- Owner: bmiddha
- License: gpl-3.0
- Created: 2018-06-30T02:52:09.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2020-12-30T18:50:02.000Z (about 4 years ago)
- Last Synced: 2024-11-23T15:32:47.434Z (2 months ago)
- Topics: archlinux, centos, debian, linux, linux-mirror, mirror, mirroring, rsync, systemd, systemd-service, systemd-timer, ubuntu
- Language: Shell
- Size: 17.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linux-mirrors-sync
Easy to customize scripts to sync Linux mirrors.
`syncall.sh` Run scripts in `scripts/` and send and send an email if error occours
Use the `-d`flag on any of the scripts to enable debug mode. It will display the rsync progress.
# Systemd service and timer
Change the script path in the `mirrorsync.service` file.
Copy the service and timer files to systemd directoryStart and enable the timer with `systemctl enable mirrorsync.timer` `systemctl start mirrorsync.timer`
Check timer status with `systemctl list-timers`# Logging
Logs are stored in `/var/log/mirrorsync.mirrorname.log`.
If not running as root you will need to create and change ownership of the files.For example:
```
touch /var/log/mirrorsync.archlinux.log
chown mirrorsync:mirrorsync /var/log/mirrorsync.archlinux.log
```