hydra: berlin: Run rsync in daemon mode.
* hydra/berlin.scm (%rsync-modules-for-backup): New variable. <services>: Add 'rsync-service-type' instance. * hydra/website.scm (website-services): Add comment about the Cuirass and GWL web sites.
This commit is contained in:
parent
275a2ac393
commit
8ed8a5c32f
|
@ -16,7 +16,7 @@
|
|||
(srfi srfi-1)
|
||||
(ice-9 match))
|
||||
(use-service-modules avahi base databases dns monitoring networking admin
|
||||
shepherd ssh vpn)
|
||||
rsync shepherd ssh vpn)
|
||||
(use-package-modules admin base certs databases emacs linux mail monitoring
|
||||
ssh tls tor vim package-management
|
||||
version-control
|
||||
|
@ -138,6 +138,33 @@ Happy hacking!\n"))
|
|||
(basename file))))
|
||||
(find-files %build-node-key-directory "\\.pub$")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Backups.
|
||||
;;;
|
||||
|
||||
(define %rsync-modules-for-backup
|
||||
;; Directories exported so they can be backed up on another machine on the
|
||||
;; project's VPN.
|
||||
(list (rsync-module
|
||||
(name "web-pdf")
|
||||
(file-name "/srv/guix-pdfs"))
|
||||
(rsync-module
|
||||
(name "web-video")
|
||||
(file-name "/srv/videos"))
|
||||
(rsync-module
|
||||
(name "web-audio")
|
||||
(file-name "/srv/audio"))
|
||||
(rsync-module
|
||||
(name "web-cuirass")
|
||||
(file-name "/src/cuirass-releases"))
|
||||
(rsync-module
|
||||
(name "disarchive")
|
||||
(file-name "/gnu/disarchive"))
|
||||
(rsync-module
|
||||
(name "substitutes")
|
||||
(file-name "/var/cache/guix/publish"))))
|
||||
|
||||
|
||||
(operating-system
|
||||
(host-name "berlin.guix.gnu.org")
|
||||
|
@ -255,6 +282,13 @@ Happy hacking!\n"))
|
|||
(directory "/gnu/disarchive")
|
||||
(cuirass-url "http://localhost:8081")))
|
||||
|
||||
;; Rsync service for backup purposes. Listen only the VPN
|
||||
;; address.
|
||||
(service rsync-service-type
|
||||
(rsync-configuration
|
||||
(address "10.0.0.1")
|
||||
(modules %rsync-modules-for-backup)))
|
||||
|
||||
;; DNS
|
||||
(service knot-service-type
|
||||
(knot-configuration
|
||||
|
|
|
@ -53,6 +53,8 @@
|
|||
'(("GUIX_MANUAL" . "guix-cookbook")
|
||||
("GUIX_WEB_SITE_URL" . "/")))))
|
||||
|
||||
;; TODO: Add the manuals of Cuirass and GWL.
|
||||
|
||||
;; The bootstrappable.org web site.
|
||||
(service static-web-site-service-type
|
||||
(static-web-site-configuration
|
||||
|
|
Loading…
Reference in New Issue