Giter VIP home page Giter VIP logo

rclone-aio's Introduction

Rclone AIO Script

This is a bash script to facilitate the use of rclone commands with various options and additional features. It supports copying, synchronizing, moving, deleting files, removing empty directories and wiping the remote. The script also supports adding additional rclone filters and flags.

Requisitos

Instalação

  1. Clone the repository or download the script.
  2. Make sure the script has execute permission:
    chmod +x ./Rclone-AIO.sh 

Use

Display the help menu

./Rclone-AIO.sh -h
Usage: ./Rclone-AIO.sh [options] source destination [ -e flags_do_rclone]

Options:
  -c (Copy)	 Copy files from source to destination, ignoring identical files.
  -s (Sync) 	 Make the source and destination identical, modifying only the destination.
  -m (Move)	 Move files from source to destination.
  -d (delete)	 Remove files in the path.
  -r (rmdirs)	 Remove empty directories in the path.
  -C (cleanup) Clean up the remote if possible. Empty the recycle garbage can or delete old versions of files. Not supported by all remotes.
  -n 		 Adds the --dry-run flag to rclone.
  -f file	 Adds the --filter-from flag with the specified file to rclone.
  -e 		 Adds extra flags to the rclone command.

Examples:
  ./Rclone-AIO.sh -c 'local:path/origin' 'cloud:path/destination'
  ./Rclone-AIO.sh -c 'ftp:/path/origin' 'cloud:path/destination' -e --max-age=7d
  ./Rclone-AIO.sh -c 'local:path/origin' 'cloud:path/destination' -f '/path/to/filter.lst'
  ./Rclone-AIO.sh -s 'local:path/origin' 'cloud:path/destination'
  ./Rclone-AIO.sh -s 'ftp:/path/origin' 'cloud:path/destination' -e --max-age=7d
  ./Rclone-AIO.sh -n -s 'local:path/origin' 'cloud:path/destination' -f '/path/to/filter.lst'
  ./Rclone-AIO.sh -n -s 'local:path/origin' 'cloud:path/destination' -f '/path/to/filter.lst' -e --max-age=7d
  ./Rclone-AIO.sh -C 'cloud:/'
  ./Rclone-AIO.sh -d 'cloud:path/destination'
  ./Rclone-AIO.sh -r 'cloud:path/destination'

Options

  • -c (Copy): Copy files from source to destination, ignoring identical files.
  • -s (Sync): Make the source and destination identical, modifying only the destination.
  • -m (Move): Move files from source to destination.
  • -d (delete): Remove files in the path.
  • -r (rmdirs): Remove empty directories in the path.
  • -C (cleanup): Clean up the remote if possible. Empty the recycle garbage can or delete old versions of files. Not supported by all remotes.
  • -n: Adds the --dry-run flag to rclone.
  • -f file: Adds the --filter-from flag with the specified file to rclone.
  • -e: Adds extra flags to the rclone command.

Examples

Copy files or folders

./Rclone-AIO.sh -c 'local:path/origin' 'cloud:path/destination'

Synchronize files or folders

./Rclone-AIO.sh -s 'local:path/origin' 'cloud:path/destination'

Move files or folders

./Rclone-AIO.sh -m 'local:path/origin' 'cloud:path/destination'

Dekete files or folders

./Rclone-AIO.sh -d 'cloud:path/destination'

Remove empty directories

./Rclone-AIO.sh -r 'cloud:path/destination'

Cleaning the remote control

./Rclone-AIO.sh -C 'cloud:path/destination'

Copy files with filter

  • Using a filter file would be like adding exclusion patterns to the rclone include command.
  • To find out more, see the rclone documentation Rclone.
./Rclone-AIO.sh -c 'local:path/origin' 'cloud:path/destination' -f '/path/to/filter.lst'

Synchronize with additional flags

  • The script has already been designed with support for some flags if you want to add others you can do so by following this example
./Rclone-AIO.sh -s 'ftp:/path/origin' 'cloud:path/destination' -e --max-age=7d

Contribution

Feel free to contribute by sending issues and pull requests. All contributions are welcome!

rclone-aio's People

Contributors

edsonsbj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.