Code Monkey home page Code Monkey logo

Comments (6)

dorthrithil avatar dorthrithil commented on August 17, 2024 1

This works fine! Using the graph API I can get all groups and then all drives from each group. With the drive IDs my script is creating configs and then running rclone copy --config .... This way I don't need to worry about adding new groups to the backup system manually.

from dariusz.wieckiewicz.org.

dorthrithil avatar dorthrithil commented on August 17, 2024

Thanks for sharing this! I'm currently building a backup system based on this article and it works great. The only downside is, that appears to be necessary to add a new remote for every Sharepoint site you want to backup. Is there a way to download the complete Sharepoint files with only one rclone remote?

from dariusz.wieckiewicz.org.

idarek avatar idarek commented on August 17, 2024

Thank you @dorthrithil for your comment.
Rclone by default is saving its config in user directory, but theoretically there is nothing against running rclone with different config files and different settings/credentials.

Simple bash script to run rclone with config 1 and after that config 2 etc. shall work.

See: rclone.org/commands/rclone_config

Command rclone config file show where config file is saved (default "$HOME/.config/rclone/rclone.conf").

Adding --config string flag and pointing to specific file shall allow you to create multiple configs that can than be run with them.

This shall help you give idea and figure out.

More about flags: rclone.org/flags

from dariusz.wieckiewicz.org.

dorthrithil avatar dorthrithil commented on August 17, 2024

Thanks for your reply. Unfortunately this solves only half of my problem as I still need to create a config file for every site I want to sync. So if someone creates a new Sharepoint site in my organization I need to update my script. Currently I'm trying to write a script using the graph API that does some auto discovering of drives in the organization. Probably I can combine that with the config approach to be able to download all the organizations sites.

from dariusz.wieckiewicz.org.

mpathy avatar mpathy commented on August 17, 2024

"this is why we will need to do this with a graphic environment on Raspberry OS."

Thats not true, at least now. I dont know how old your version is, though.

https://rclone.org/remote_setup/

from dariusz.wieckiewicz.org.

idarek avatar idarek commented on August 17, 2024

It's not old. I set new environment about month ago and I still need graphic environment to get everything in order to run. If you managed to get this without it, that's great. For my purpose it's needed.

from dariusz.wieckiewicz.org.

Related Issues (20)

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.