Skip to content

Instantly share code, notes, and snippets.

@augmentedfourth
Created July 10, 2012 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save augmentedfourth/3085320 to your computer and use it in GitHub Desktop.
Save augmentedfourth/3085320 to your computer and use it in GitHub Desktop.
Debian mirror
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
# Sync the repository
00 22 * * * ftpsync /var/ftpsync/bin/ftpsync sync:archive:debian
00 3 * * * ftpsync /var/ftpsync/bin/ftpsync sync:archive:security
00 4 * * * ftpsync /var/ftpsync/bin/ftpsync sync:archive:archive
# Repopulate customized repository index at least once a day to be sure
00 3 * * * root rep-index 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment