Skip to main content

Backup to WebDAV using rclone on Windows

Before proceeding, please ensure that you have had a backup storage pool created under bks-{your username}. If you do not, contact GRIT support to get this setup first.

Download the Windows rclone package here (place holder for link)

  1. Copy the rclone folder from rclone.zip to the root of your C driverclone-win-install.png
  2. Open C:\rclone and run the rclone setup batch file to start the rclone configrclone-win-install2.png
  3. Enter n to set up a new rclone link
  4. Set the name as Nextcloud

    The name is case sensitiverclone-win1.png

  5. Enter webdav as the storage type
  6. Enter your Nextcloud WebDAV URL IE: https://nextcloud.grit.ucsb.edu/remote.php/dav/files/{username}/bks-{username} 
  7. Enter Nextcloud as your provider
  8. Enter your Nextcloud usernamerclone-win3.png
  9. Enter y to input then confirm your Nextcloud App Password (Steps for TOTP and AppPassword below)

    If you have not done this yet, pause here and follow the App Password creation steps here.

  10. Leave the Bearer token selection blank by pressing enter to proceed to the next step
  11. Enter n to skip the advanced configrclone-win4.png
  12. Enter y to confirm your Nextcloud WebDAV connection setup
  13. Enter q to complete the rclone configrclone-win5.png
  14. After entering q to complete the config the following will occur automatically: * A folder will be created under C:\Users\UserAccountName\rclone-user
    rclone-win6.png
    rclone-win7.png
    • This is where the default user configurable file/directory exclusion list and backup logs will be generated
    • Logs are stored under rclone-user\logs\rclone.log
    • The exclude.txt file is used to define any folders under the %UserProfile% directory that the user does not want backed up to Nextcloud. Default Exclude:
      ## Default exclusions ## /rclone-user/logs/
      
      /AppData/ ntuser.dat.* NTUSER.D* 
      
      ## Common Windows User Folder Exclusions 
      # Add a '# ' (a hash then a space, IE “# /FolderName/”) 
      # before any of the following common folders if you wish for these to be included in your 
      # regular backups
      
      /Nextcloud/** 
      /Nextcloud4/** 
      /Nextcloud (backup)/** 
      /3D Objects/**
      /Downloads/** 
      /Apple/**
      /Contacts/** 
      /Dropbox/** 
      /Favorites/** 
      /iCloud Drive/** 
      /Intel/**
      /Library/**
      /Links/**
      /Music/**
      /OneDrive/**
      /Pictures/**
      /Saved Games/**
      /Searches/**
      /Videos/**
      
      ## User Defined Exclusions
      # Examples:
      # /Desktop/scratch/ 
      # This will exclude the scratch directory, and all of its contents from the 
      # C:\Users\<Username>\Desktop folder from being backed up to Nextcloud
    • A scheduled task to run rclone silently every day at 9:30AM
      • This can be edited by opening Task Scheduler and adjusting the time(s) the backup runs in the background.rclone-win8.png