Install rclone

This commit is contained in:
Jeffrey Serio 2024-06-20 12:46:40 -05:00
parent 15c1cf50c9
commit ef6c35943d
3 changed files with 6 additions and 5 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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]