sudo pacman -S rclone
rclone config # will need to set up secret key and client ID follow instructions
mkdir ~/GoogleDrive
rclone mount gdrive: ~/GoogleDrive --vfs-cache-mode writes --daemon
# can also use following to run in background (nohup):
nohup rclone mount gdrive: ~/GoogleDrive --vfs-cache-mode writes --allow-non-empty --dir-cache-time 1000h --poll-interval 15s
systemctl --user edit --force --full rclone-mount.service
add:
[Unit]
Description=RClone Mount Google Drive
After=network-online.target
[Service]
Type=notify
ExecStart=/usr/bin/rclone mount gdrive: %h/GoogleDrive --vfs-cache-mode writes --vfs-cache-max-age 1h
ExecStop=/bin/fusermount -u %h/GoogleDrive
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target
Enable: systemctl --user enable --now rclone-mount.service
No comments:
Post a Comment