Skip to content

gicocarlo/rclone-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rclone-utils

Scripts to automate rclone commands

About

rclone is a useful tool to sync files on your local machine to and from the cloud. These scripts are created for the purposes of making rclone easier to use.

Prerequisites

  1. A basic understanding & usage of rclone.
  2. Create an .env file with the following environment variables:
  • RCLONE_SOURCE_PATH - The path on your local machine that contains all directories to be synced with your cloud service provider.

  • RCLONE_DEST_PATH - The path on your cloud service provider that contains all directories to be synced with your local machine.

  • IGNORE_DIRS (optional) - A comma separated string of directory paths from RCLONE_SOURCE_PATH to skip. These won't be synced. e.g.

    IGNORE_DIRS="ignore1,ignore2,ignore3"

Scripts

sync.sh

Will sync files from your local machine to your selected cloud provider.

Automating Backups

This utility really shines as a way to automate backups. This can be done by setting up a cron job with a file output for logging. For example, this is a cron job that will run this script every day at 3am:

0 3 * * * /path/to/your/sync.sh >> /path/to/your/logfile.log 2>&1

Make sure to copy over the .env to your $HOME directory before starting the cron job or else it won't work.

About

Scripts to automate rclone commands

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages