digital-garden/notes/Настройки для сервера блога.md
2024-06-13 21:01:37 +03:00

5.2 KiB

tags date linked
зрелость/🌱
2023-09-05
0 0 * * * /opt/blog/ssl_renew.sh >> /var/log/cron.log 2>&1
5 0 * * 6 /opt/blog/compressing-image.sh >> /var/log/cron.log 2>&1
# */5 * * * * /opt/blog/restart-remark.sh >> /var/log/cron.log 2>&1

drone

-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAsiieus50+ZGTEQ87gOpkXjE0dUI9H2ioBMsu4vs7CzwjGf2v9c56
OmyZhRv2qTI5FXu/V4jpgpBa44DOSSIQdDVF/6wvCsFCMVhpQnk6sFeIpNIURDe5BG8k0L
Xsu60Qv2v3niEVcl+6itkrOISa5JrY6UI8RgDvQJgVVGaNih4sAD9P8Yen3cW7Zxk/wBIb
O5LRvyZxs5W28/GpYEP/+g+RRzxzfFZZCCpaiBoWwMi/8DiHHkFD2LiLRD3TgvxKF3OZEr
NzWcgmMaCjM07tS8ajciP9JRFrnIFTRsSb6u2ypaYF+rpq5O+N1Fd6reQsnwUOI78gSPUt
AokYQ5hCcxySuomODu1q3V5Z1/uIZdrOcBmWDXAioj+gWesH299XZEKQMMAmGNouWhvc4m
0t+Mga567vEsVPQ6hH1pCFNvdQuRFYDXnboQ86IaDvOfOMv9aWZBi3LQtPjfNe5m4cO6nz
FhNvCGHuneTctSfRvbbpp0a5/3BV+NARUQLQU4+TAAAFkMg0coTINHKEAAAAB3NzaC1yc2
EAAAGBALIonrrOdPmRkxEPO4DqZF4xNHVCPR9oqATLLuL7Ows8Ixn9r/XOejpsmYUb9qky
ORV7v1eI6YKQWuOAzkkiEHQ1Rf+sLwrBQjFYaUJ5OrBXiKTSFEQ3uQRvJNC17LutEL9r95
4hFXJfuorZKziEmuSa2OlCPEYA70CYFVRmjYoeLAA/T/GHp93Fu2cZP8ASG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NcCKiP6BZ6wfb31dkQpAwwCYY2i5aG9zibS34yBrnru8SxU9DqEfWkIU291C5EVgNeduhDzohoO8584y/1pZkGLctC0+N817mbhw7qfMWE28IYe6d5Ny1J9G9tumnRrn/cFX40BFRAtBTj5M= patois@pingver-media

authorized_keys

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDaVW3K+0LofF6YU+BxTKsWEhPM//r7qaJMS0THif7CqL97wfGLR66bBOlj5QP15M6/avmKncgP2aMKSOhnP63Lk5DLSgfCotfFXzHZnf3ZJWuIIefPe7vtlFtNQ0Bx/QYn7DqimSHqOWL0neIaRI08rmo3D1DEQdB2jhp5kJJ9NXrBdB9J1rGqhbl4Dan7URXkxzJ430JPHhoxbyEp7DOJ1+l1LdionA0uSbRLYYA2zoVps+lu00kelw7Vkg1JOhxoL8WS0b3Jmqvb22Iw4QkFF4+o/iMo+MPDYmM6gkqsedR9EGyT00Vejjflz/JWkaXugqZf/rnCVprz2gBPaBPv
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDvMh1t031rye/yc1Fi5MKmMecMK00+euVAQI/HMcPv8AAAABHNzaDo= upagge@MacBook-Pro-Mark.local
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCyKJ66znT5kZMRDzuA6mReMTR1Qj0faKgEyy7i+zsLPCMZ/a/1zno6bJmFG/apMjkVe79XiOmCkFrjgM5JIhB0NUX/rC8KwUIxWGlCeTqwV4ik0hREN7kEbyTQtey7rRC/a/eeIRVyX7qK2Ss4hJrkmtjpQjxGAO9AmBVUZo2KHiwAP0/xh6fdxbtnGT/AEhs7ktG/JnGzlbbz8algQ//6D5FHPHN8VlkIKlqIGhbAyL/wOIceQUPYuItEPdOC/EoXc5kSs3NZyCYxoKMzTu1LxqNyI/0lEWucgVNGxJvq7bKlpgX6umrk743UV3qt5CyfBQ4jvyBI9S0CiRhDmEJzHJK6iY4O7WrdXlnX+4hl2s5wGZYNcCKiP6BZ6wfb31dkQpAwwCYY2i5aG9zibS34yBrnru8SxU9DqEfWkIU291C5EVgNeduhDzohoO8584y/1pZkGLctC0+N817mbhw7qfMWE28IYe6d5Ny1J9G9tumnRrn/cFX40BFRAtBTj5M= drone
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDg2tNeMiREypgjNkNvxNo/DfaiUCzD8WrJVoyB3YULxtve5c2GFdagj5cWeiw9hl/fJ5kHHUEs2m8RtXqpLYc/ReEHZHS8o49qDQ17Kg7s7v0+ky0alcrkZTcNskLxJE7a0aNiYSv3cSp3b9kMerAlN08swpoZ0a/sh4UpeJiebaQVibiVp146kgyf0l+rJ2vXV83UDgsWVWOueWe5JNVECPYNqjwezC8IK0t/IDw6A278TvWp8mofFIbEyU4uQ1ZYh3F0UCwSRmPRr3gf7Pb7twLPOnVxKqyxYbhy74RsHgxkd6ts0DQGlWgWtU3vlCCQDT5UyLW2zrebVI5hz3+OKqZAyff9ig86sQteEw5c4J0wtoRK6M3ycmK5M2+mNsZY1bDo6YnDxiVGNLTqNhCvh21FZywXO0L6OaIAeswf62QQWogPZQIRDSHtl0McaT/QnZn2I7tjaMiGl6tSkxaJt3n01AO99OAx0bYfcguWmv5QdWQ/4XgXcjZYJoJyYD0= web-fsnotes

/home/patois/backup.sh

#!/bin/bash

SITE_PATH=/opt
SITE_FOLDER=blog
USERNAME=patois
ARCHIVE_NAME=$1

tar -cvzf /home/$USERNAME/$ARCHIVE_NAME $SITE_PATH/$SITE_FOLDER