rclone
Запуск RClone в виде сервиса
/etc/systemd/system/rclone-sync.service:
[Unit]
Description=Sync files between different remotes via rclone
[Service]
Type=simple
ExecStart=/usr/bin/rclone-sync
/etc/systemd/system/rclone-sync.timer:
[Unit]
Description=Perform an rclone sync periodically.
[Timer]
OnBootSec=1h
OnUnitActiveSec=3h
[Install]
WantedBy=timers.target
/usr/bin/rclone-sync:
#!/bin/bash
rclone sync acd: gdrive:
Включаем в системе:
systemctl enable rclone-sync.timer
systemctl start rclone-sync.timer
Проверяем работоспособность:
systemctl list-timers
journalctl -u rclone-sync -a
No Comments