1. Download and Install Prerequisites
2. Set Up your Personal Google Drive Client ID
- Log into the Google API Console
- Select a project or create a new project.
- Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the "Google Drive API".
- Click "Credentials" in the left-side panel
- Click on the "+ CREATE CREDENTIALS" button at the top of the screen, then select "OAuth client ID".
- Choose an application type of "Desktop app"
- Keep client ID and client secret for the next step
3. Configure rclone
- Navigate to C:\rcloneand run.\rclone.exe config
n/r/c/s/q> n
name> gdrive
Storage> drive
client_id> Enter Client ID from #2.7
client_secret> Enter Client Secret from #2.7
scope> 1
root_folder_id>
service_account_file>
y/n>
y/n>
y/n>
y/e/d>
e/n/d/r/c/s/q>q
- mv ~\.config\rclone\rclone.conf .
4. Configure NSSM to run rclone mount on start up
- Open PowerShell as Administrator
- Navigate to C:\rclone
- .\nssm.exe install rclone
- Select rclone.exefor Application > Path
- Enter the following for Appplication > Arguments
mount --vfs-cache-mode writes --log-level INFO --config "C:\rclone\rclone.conf" --log-file "C:\rclone\rclone.log" gdrive: G:
- Start the service .\nssm.exe start rclone
5. Backing up local files to GDrive
- To copy local directory to remote
.\rclone.exe copy 'B:\Photos\' gdrive:Photos -v
- To sync local directory to remote
.\rclone.exe sync 'B:\Photos\' gdrive:Photos -v
- Compare Local and remote
.\rclone.exe check 'B:\Photos\' gdrive:Photos
 

 
    
Top comments (0)