Skip to content

Instantly share code, notes, and snippets.

View emanueleaina's full-sized avatar

Emanuele Aina emanueleaina

View GitHub Profile
#!/usr/bin/python
# git config annex.iwebftp-hook "/usr/local/bin/git-annex-ftp.py -s prefix.iweb-storage.com -u prefix-admin -p password"
# git annex initremote iwebftp type=hook hooktype=iwebftp encryption=none
from ftplib import FTP, error_perm
import os, argparse
parser = argparse.ArgumentParser(description='Combined hook for FTP remotes in git-annex')
parser.add_argument('-s', '--server', required=True, help='the FTP host name or IP address')