Skip to content

Instantly share code, notes, and snippets.

@coulterpeterson
Last active December 18, 2024 15:27
Show Gist options
  • Select an option

  • Save coulterpeterson/9b15d658ab85f86d4890b80f5bdc36cf to your computer and use it in GitHub Desktop.

Select an option

Save coulterpeterson/9b15d658ab85f86d4890b80f5bdc36cf to your computer and use it in GitHub Desktop.

Revisions

  1. coulterpeterson revised this gist Dec 18, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions recipes.md
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@
    `rclone sync Personal-Google-Photos: "F:\Google Photos" -P --create-empty-src-dirs`

    # Automation on Windows
    * Pre-req: Install rclone with chocolatey
    * Create folder C:\scripts
    * Create a .bat file with your desired sync commands from above
    * Open Task Scheduler and create a 'Custom' folder
  2. coulterpeterson revised this gist Dec 18, 2024. 1 changed file with 12 additions and 3 deletions.
    15 changes: 12 additions & 3 deletions recipes.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,17 @@
    # Sync from one local drive to another
    # Command Types
    ## Sync from one local drive to another
    `rclone sync "C:\Users\USERNAME\folder" "F:\backups\folder" -P --create-empty-src-dirs --ignore-errors`

    # Sync local directory to SMB share (in this case backing up CapCut projects data)
    ## Sync local directory to SMB share (in this case backing up CapCut projects data)
    `rclone sync "C:\Users\USERNAME\AppData\Local\CapCut\User Data\Projects\com.lveditor.draft" "SMB_REMOTE_NAME:f\CapCut Projects Backup" -P --create-empty-src-dirs --ignore-errors`

    # Sync Google Photos to local backup drive
    ## Sync Google Photos to local backup drive
    `rclone sync Personal-Google-Photos: "F:\Google Photos" -P --create-empty-src-dirs`

    # Automation on Windows
    * Create folder C:\scripts
    * Create a .bat file with your desired sync commands from above
    * Open Task Scheduler and create a 'Custom' folder
    * In the Custom folder, create a new Task, name it something useful, set the trigger to "time based" as often as you want, and for the action set it to "Start a program, and point it at your .bat script located in C:\scripts"
    * It's also a good idea to Disable the default conditions in the 'Conditions' tab if you prefer
    * Tweak anything else about the task you like, then click 'OK'
  3. coulterpeterson created this gist Dec 18, 2024.
    8 changes: 8 additions & 0 deletions recipes.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Sync from one local drive to another
    `rclone sync "C:\Users\USERNAME\folder" "F:\backups\folder" -P --create-empty-src-dirs --ignore-errors`

    # Sync local directory to SMB share (in this case backing up CapCut projects data)
    `rclone sync "C:\Users\USERNAME\AppData\Local\CapCut\User Data\Projects\com.lveditor.draft" "SMB_REMOTE_NAME:f\CapCut Projects Backup" -P --create-empty-src-dirs --ignore-errors`

    # Sync Google Photos to local backup drive
    `rclone sync Personal-Google-Photos: "F:\Google Photos" -P --create-empty-src-dirs`