Skip to content

fbataill/ovh-redirections

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ovh-redirections

Do not get crazy to handle OVH redirections anymore !

Features

  • Fetch redirections list and write it as YAML file
  • Edit with your favorite app a YAML file to add / delete redirection(s)
  • Apply all modifications in one command

Installation

git clone https://github.com/neomilium/ovh-redirections.git
cd ovh-redirections
python3 -m venv
source bin/activate
pip install ovh pyyaml

Configuration

cp ovh-redirections.yaml.sample ~/.config/ovh-redirections.yaml
vim ~/.config/ovh-redirections.yaml

Quick start

Fetch

Fetch redirections list with details, sort and group them then write them to an hidden file .example.com_ovh-redirections.yaml. This file should not be edited

./ovh-redirections fetch

Checkout

Copy previously fetched redirections file to a editable file named example.com_ovh-redirections.yaml.

./ovh-redirections checkout

Edit redirections

Now, you have to edit your file according to your will.

Diff

Compares edited file with fetched one. It will show added and deleted redirections.

./ovh-redirections diff

Commit

Apply added / deleted redirections online.

./ovh-redirections commit

About

Script to ease OVH mail redirections management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%