mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-01 16:03:06 +01:00
Install rclone
This commit is contained in:
parent
15c1cf50c9
commit
ef6c35943d
@ -17,12 +17,13 @@ gmcapsuled:
|
|||||||
cp -v "${PWD}/gmcapsulerc" ~/.gmcapsulerc
|
cp -v "${PWD}/gmcapsulerc" ~/.gmcapsulerc
|
||||||
|
|
||||||
mastodon:
|
mastodon:
|
||||||
|
sudo apt install -y rclone
|
||||||
sudo cp -v "${PWD}/systemd/system/mastodon"* /etc/systemd/system/
|
sudo cp -v "${PWD}/systemd/system/mastodon"* /etc/systemd/system/
|
||||||
sudo cp -v "${PWD}/bin/mastodon-db-backup" /usr/local/bin
|
sudo cp -v "${PWD}/bin/mastodon-db-backup" /usr/local/bin
|
||||||
sudo chown -R root:root /usr/local/bin/mastodon-db-backup
|
sudo chown -R root:root /usr/local/bin/mastodon-db-backup
|
||||||
sudo chmod 755 /usr/local/bin/mastodon-db-backup
|
sudo chmod 755 /usr/local/bin/mastodon-db-backup
|
||||||
sudo systemctl enable --now mastodon-db-backup.timer
|
sudo systemctl enable --now mastodon-db-backup.timer
|
||||||
sudo systemctl enable --now mastodon-system-to-minio.timer
|
sudo systemctl enable --now mastodon-to-minio.timer
|
||||||
|
|
||||||
thelounge:
|
thelounge:
|
||||||
curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest \
|
curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=mastodon-system-to-minio
|
Description=mastodon-to-minio
|
||||||
Wants=network.target
|
Wants=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
@ -7,7 +7,7 @@ Type=oneshot
|
|||||||
User=mastodon
|
User=mastodon
|
||||||
Group=mastodon
|
Group=mastodon
|
||||||
WorkingDirectory=/home/mastodon
|
WorkingDirectory=/home/mastodon
|
||||||
ExecStart=rclone copy --progress --transfers=8 /home/mastodon/live/public/system/ minio:mastodata
|
ExecStart=rclone copy --progress --transfers=8 /home/mastodon/ minio:mastodata
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
@ -1,8 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=mastodon-system-to-minio
|
Description=mastodon-to-minio
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=*-*-* 21:00:00
|
OnCalendar=*-*-* 22:00:00
|
||||||
Persistent=true
|
Persistent=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
Loading…
Reference in New Issue
Block a user