mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-10-01 04:45:34 -04:00
add deployment for backup public key and password
This commit is contained in:
parent
398c2b1175
commit
28f14f8873
@ -30,10 +30,12 @@ ssh $remote "ln -snf $target /srv/element.grapheneos.org && sync /srv/element.gr
|
|||||||
|
|
||||||
echo "root $target;" > nginx-tmp/root_element.grapheneos.org.conf
|
echo "root $target;" > nginx-tmp/root_element.grapheneos.org.conf
|
||||||
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate nginx-tmp/{nginx.conf,mime.types,root_element.grapheneos.org.conf,snippets} $remote:/etc/nginx/
|
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate nginx-tmp/{nginx.conf,mime.types,root_element.grapheneos.org.conf,snippets} $remote:/etc/nginx/
|
||||||
rsync -ptcv --chmod=755 --fsync --preallocate remote-backup $remote:/usr/local/bin/
|
|
||||||
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.timer $remote:/etc/systemd/system/remote-backup.timer
|
|
||||||
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.service $remote:/etc/systemd/system/remote-backup.service
|
|
||||||
ssh $remote nginx -s reload
|
ssh $remote nginx -s reload
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo active is now $target
|
echo active is now $target
|
||||||
|
|
||||||
|
rsync -ptcv --chmod=755 --fsync --preallocate remote-backup $remote:/usr/local/bin/
|
||||||
|
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.timer $remote:/etc/systemd/system/remote-backup.timer
|
||||||
|
rsync -ptcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.service $remote:/etc/systemd/system/remote-backup.service
|
||||||
|
rsync -ptcv --chmod=644 --fsync --preallocate backup-public-key.txt cloud-archive-password.txt $remote:
|
||||||
|
Loading…
Reference in New Issue
Block a user