fix mirrors

This commit is contained in:
Anton McClure 2019-05-25 09:33:45 -04:00 committed by fosslinux
parent fe9394ea39
commit dfab14939a
4 changed files with 16 additions and 13 deletions

View File

@ -1,6 +0,0 @@
#!/bin/bash
# Mirror rsync jobs for ftp.thunix.net
rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/gnu/ /var/www/ftp.thunix.cf/gnu-ftp
rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/alpha/ /var/www/ftp.thunix.cf/gnu-alpha
rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/old-gnu/ /var/www/ftp.thunix.cf/gnu-old

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Mirror rsync jobs for ftp.thunix.net
# Mirror rsync jobs for ftp.thunix.net that run hourly
rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/gnu/ /var/www/ftp.thunix.cf/gnu-ftp
rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/alpha/ /var/www/ftp.thunix.cf/gnu-alpha

View File

@ -1,6 +1,15 @@
- name: Add mirror rsync cron job
# Add mirror rsync cron jobs (hourly and daily)
---
- name: Add mirror rsync cron job that run hourly
copy:
src: ../files/mirror-rsync
dest: /etc/cron.daily/mirror-rsync
src: ../files/mirror-rsync-hourly
dest: /etc/cron.daily/mirror-rsync-hourly
owner: root
mode: 744
- name: Add mirror rsync cron job that run daily
copy:
src: ../files/mirror-rsync-daily
dest: /etc/cron.daily/mirror-rsync-daily
owner: root
mode: 744