mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Install rclone
This commit is contained in:
parent
15c1cf50c9
commit
ef6c35943d
@ -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 \
|
||||
|
@ -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
|
@ -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]
|
Loading…
Reference in New Issue
Block a user