mailinabox/management
guyzmo 041b5f883f Support for rsync+ssh backup target (#678)
* Added support for backup to a remote server using rsync

* updated web interface to get data from user
* added way to list files from server

It’s not using the “username” field of the yaml configuration
file to minimise the amount of patches needed. So the username
is actually sorted within the rsync URL.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* Added ssh key generation upon installation for root user.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* Removed stale blank lines, and fixed typo

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* fix backup-location lines, by switching it from id to class

* Various web UI fixes

- fixed user field being shadowed ;
- fixed settings reading comparaison ;
- fixed forgotten min-age field.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* Added SSH Public Key shown on the web interface UI

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* trailing spaces.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* fixed the extraneous environment

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* Updated key setup

- made key lower in bits, but stronger (using -a option),
- made ssh-keygen run in background using nohup,
- added independent key file, as id_rsa_miab,
- added ssh-options to all duplicity calls to use the id_rsa_miab keyfile,
- changed path to the public key display

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* added rsync options for ssh identity support

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* removed strict host checking for all backup operations

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

* Remove nohup from ssh-keygen so errors aren't hidden. Also only generate a key if none exists yet

* Add trailing slash when checking a remote backup. Also check if we actually can read the remote size

* Factorisation of the repeated rsync/ssh options

cf https://github.com/mail-in-a-box/mailinabox/pull/678#discussion_r81478919

* Updated message SSH key creation

https://github.com/mail-in-a-box/mailinabox/pull/678#discussion_r81478886
2016-11-12 09:28:55 -05:00
..
templates Support for rsync+ssh backup target (#678) 2016-11-12 09:28:55 -05:00
auth.py the control panel auth hmac message should also include the user's password so that resetting a password in the database forces that user to log in to the control panel again; also use a sha256 hmac 2015-06-06 12:38:19 +00:00
backup.py Support for rsync+ssh backup target (#678) 2016-11-12 09:28:55 -05:00
csr_country_codes.tsv drop the CSR_COUNTRY setting and ask within the control panel 2015-12-26 11:48:23 -05:00
daemon.py simplify how munin-cgi-graph is called to reduce the attack surface area 2016-08-19 12:42:43 -04:00
daily_tasks.sh nightly status checks could fail if any domains had non-ASCII characters 2016-02-13 11:51:06 -05:00
dns_update.py SSHFP record creation should scan nonstandard SSH port if necessary (#974) 2016-10-15 15:36:13 -04:00
email_administrator.py use "127.0.0.1" throughout rather than mixing use of an IP address and "localhost" 2016-05-06 09:10:38 -04:00
mail_log.py Added received mail count to hourly activity overview in mail log management script 2016-06-10 13:08:57 +02:00
mailconfig.py Allow files in /home/user-data/mail/mailboxes 2016-02-21 13:49:07 +01:00
ssl_certificates.py more for dnspython exception with IPv6 addresses 2016-09-23 07:41:24 -04:00
status_checks.py If ufw isn't installed on the machine the status checks shouldn't fail 2016-11-12 09:25:34 -05:00
utils.py merge functions get_web_domains and get_default_www_redirects 2015-11-29 14:46:08 +00:00
web_update.py provision tls certificates from the control panel 2016-01-04 18:43:16 -05:00