Based Backup Configurations to an Archive Site
ftp-worker \
-on-write ./on-write-junos-archive.py \
-workdir path/to/git-repo
Based transfer-on-commit
command automate backup JunOS configuration to remote-side
set system archival configuration transfer-on-commit
set system archival configuration archive-sites ftp://<username>@<host>:<port>/<path> password <password>