Hello,
i'm using rclone and work very well.
i need to mount my remote (Google Drive) to a folder for backup my server.
i don't undestand use of /etc/fstab so i use this scipt on crontab
* * * * * df | /usr/bin/grep /mnt/gdrive > /dev/null 2>&1 || /usr/bin/fusermount -u -z /mnt/gdrive ; nohup /usr/bin/rclone --vfs-cache-mode minimal mount my-remote:/my/remote/path /mnt/gdrive > /dev/null 2>&1
pratically check if /mnt/gdrive is a mount point and if not force dismount and remount it.
work very well and i have a normal consuption of cpu/ram
but when i try top and grep rclone i find ever 2 processes...
one is normal process for mount
other is
/bin/sh -c df | /usr/bin/grep /mnt/gdrive > /dev/null 2>&1 || /usr/bin/fusermount -u -z /mnt/gdrive ; nohup /usr/bin/rclone --vfs-cache-mode minimal mount my-remote:/my/remote/path /mnt/gdrive > /dev/null 2>&1
is normal?
can you help me to improve script?
i need to setup on @reboot (or every minute is ok) and every minute check if /mnt/gdrive is mounted...
thank you