From 4c6218331742c0a46359c301a472427272908ca3 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Thu, 19 Feb 2015 15:42:08 -0800 Subject: [PATCH] tools: add skeleton to migrate-7 --- tools/migrate-7/main.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tools/migrate-7/main.go diff --git a/tools/migrate-7/main.go b/tools/migrate-7/main.go new file mode 100644 index 0000000..84dfc7d --- /dev/null +++ b/tools/migrate-7/main.go @@ -0,0 +1,31 @@ +/* +Command migrate-7 helps network staff migrate a network running Elemental-IRCd 6.6.2 +to Elemental-IRCd 7.0 by getting a copy of the network channel state into a json +file on the disk. It will also be able to "replay" the network state into another +installation of Elemental-IRCd 7.0. + +Because of the kind of data this tool needs to collect, it needs a server link to work. +*/ +package main + +import ( + "flag" +) + +var ( + dataFileName = flag.String("datafile", "network.json", "file to dump to or load from") + + serverName = flag.String("servername", "migrate-7.elemental-ircd.int", "server name to use in linking") + serverID = flag.String("sid", "8ZX", "server ID to use in linking") + connHost = flag.String("connhost", "127.0.0.1", "server to connect to") + connPort = flag.Int("connport", 6697, "port to connect on") + connPass = flag.String("connpass", "thebird", "password to use in linking") + connUsesTLS = flag.Bool("use-ssl", true, "connect with SSL to the uplink") + + saveDataAction = flag.Bool("save", false, "save network state?") + replayDataAction = flag.Bool("replay", false, "replay network state?") +) + +func main() { + flag.Parse() +}