GithubHelp home page GithubHelp logo

mirrors-autosync's Introduction

#Mirrors-AutoSync#

A tool to set schedules to rsync from remote server.

#Install#

Docker

#Config

By default, config file directory is /etc/Mirrors-AutoSync/Mirrors-AutoSync.conf.

This is the basic structure of Mirrors-AutoSync.conf:

{
	"output_file_dir" : "Mirrors-Status.json",
	"schedules" : [
		{
			"name" : "test1",
			"schedule" : {
				"second" : "*/2"
			},
			"path" : {
				"server" : "rsync://mirrors.example.com/",
				"remotepath" : "path/to/ubuntu",
				"localpath" : "/path/to/ubuntu"
			}
		},
		{
			"name" : "test2",
			"schedule" : {
				"second" : "*/3"
			},
			"path" : {
				"server" : "rsync://mirrors.example.com/",
				"remotepath" : "path/to/ubuntu",
				"localpath" : "/path/to/ubuntu"
			}
		},
		{
			"name" : "test3",
			"schedule" : {
				"second" : "*/5"
			},
			"path" : {
				"server" : "rsync://mirrors.example.com/",
				"remotepath" : "path/to/ubuntu",
				"localpath" : "/path/to/ubuntu"
			}
		}
	]
}

The schedule accept these:

  • year
  • month
  • day
  • week
  • day_of_week
  • hour
  • minute
  • second

and can be under this expression:

Expression	Field	Description
*			any		Fire on every value
*/a			any		Fire every a values, starting from the minimum
a-b			any		Fire on any value within the a-b range (a must be smaller than b)
a-b/c		any		Fire every c values within the a-b range
xth y		day		Fire on the x -th occurrence of weekday y within the month
last x		day		Fire on the last occurrence of weekday x within the month
last		day		Fire on the last day within the month
x,y,z		any		Fire on any matching expression; can combine any number of any of the above expressions

#Information#

developed by eastpiger from Geek Pie @ ShanghaiTech

mirrors-autosync's People

Contributors

nerdneilsfield avatar wtlyu avatar zzxxtt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.