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
mastodon:
sudo apt install -y rclone
sudo cp -v "${PWD}/systemd/system/mastodon"* /etc/systemd/system/
sudo cp -v "${PWD}/bin/mastodon-db-backup" /usr/local/bin
sudo chown -R root:root /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-system-to-minio.timer
sudo systemctl enable --now mastodon-to-minio.timer
thelounge:
curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest \

View File

@ -1,5 +1,5 @@
[Unit]
Description=mastodon-system-to-minio
Description=mastodon-to-minio
Wants=network.target
[Service]
@ -7,7 +7,7 @@ Type=oneshot
User=mastodon
Group=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]
WantedBy=multi-user.target

View File

@ -1,8 +1,8 @@
[Unit]
Description=mastodon-system-to-minio
Description=mastodon-to-minio
[Timer]
OnCalendar=*-*-* 21:00:00
OnCalendar=*-*-* 22:00:00
Persistent=true
[Install]