permanent mounting

Discussion in 'Tips/Tricks/Mods' started by Fire Fox, May 28, 2022.

  1. Fire Fox

    Fire Fox Member

    Hello good day!

    i tried to mount google drive to /var/backup using,
    Code:
    rclone mount --daemon gdrive:/backup /var/backup
    when i backup a website and its database, it works. the problem is when the server restart, the mount is no more and must redo the mounting manually.
    how can i make the mount /var/backup permanent?
    thanks a lot in advance
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Add the same properly in fstab?
     
    Fire Fox likes this.
  3. Fire Fox

    Fire Fox Member

    please, how to do that?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I tried Internet Search engines with
    Code:
    linux add google drive to fstab
    and it seems to find good articles.
     
    Fire Fox likes this.
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    If you don't need the permanent mount, another option is to create ispconfig backup mount and unmount scripts. Use fstab if you want it always mounted.
     
    Fire Fox likes this.
  6. Fire Fox

    Fire Fox Member

    i read some materials from google about fstab mounting related to rclone but still cannot get thru
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Since you have commands that reliably mount (and unmount ?) the backup directory, try what @Jesse Norell suggested and put those commands in ISPConfig backup mount and unmount scripts.
    Find info on how to use them using Internet Search Engines for example with:
    Code:
    site:howtoforge.com backup mount unmount script
     

Share This Page