Skip to content

sync script for ftp.ccc.de mirrors (the cdn behind media.ccc.de)

Notifications You must be signed in to change notification settings

fleischkatapult/ftp_ccc_de_sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

ftp.ccc.de sync skript

This script is used to sync the darmstadt mirror of ftp.ccc.de against the master media.ccc.de. You need a ssh-key and a sftp-password in addition to this skript if you want to start a new ftp.ccc.de mirror.

Please contact [email protected] or join #ftpmaster on hackint.org in case of questions.

The script should be run by a cronjob in regular intervals, like once every hour.

installation

Requirements

This scripts need rsync, lftp (with an sftp-module) and tree installed. On debian, the following packets need to be installed:

  • lftp
  • rsync
  • tree

To send out emails in case of errors, the host should have a proper email config.

Configuration

lftp

The user who runs this script needs the following in its ~/.lftp/rc: set sftp:connect-program "ssh -a -x -i PATH-TO-SSH-KEY" this will tell lftp where the keyfile for sftp login is located.

Configuration file

Rename default.config to your local configuration. mv default.config local.config Edit the path to your local.config in the script. Then change the variables inside the local.config to suit your needs.

About

sync script for ftp.ccc.de mirrors (the cdn behind media.ccc.de)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages