-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More details for rclone setup #2
Comments
Sure! What can I help you with exactly? If we take this example: https://github.com/peterrus/restic-wrapper/blob/master/configs/example-job-with-rclone.env The values in the You can see a bunch of options for the OneDrive backend like Once you have set all the required options for the OneDrive backend you can test if everything is working by sourcing the env file and running rclone manually. Testing if the rclone backend is working can be done by (from a bash/zsh shell at least):
You should then get a directory listing off whatever is on your remote OneDrive. Let me know if anything else is not clear! |
Thanks for the prompt response! It's getting a little more clear now that you mentioned that there are two scheme's. Looking at the standard options that you use, I noticed that only That made me realise that the authentication to the OneDrive is already configured within rclone and stored in
I'm actually planning to do the opposite of what most people probably do. Instead of backing up to OneDrive, I want to backup to the localhost. So in that case I complete the variables as follows:
(MyOneDrive is the name that I used in rclone and Documents is the folder I want to backup to my localhost:/mnt/storage) Do you foresee any problem with this approach? |
Ah yes, that might not be very clear in my documentation yet: Technically you shouldn't have to use That being said: You can just as well configure everything rclone related in the rclone config file and leave that out of the Regarding using Restic in the opposite fashion: Honestly I have never tried this nor given it any thought but there should be nothing in Let me know if that works for you! |
OK, read everything again with a fresh mind. I think I understand the concept now of either using the I updated the
and from the rclone.config I copied:
Now when I run /root/restic-wrapper/configs/MyOneDrive.env: line 17: export: `RCLONE_ONEDRIVE-RJ_TOKEN={access_token:EwCAA8l6BAAUkj1NuJYtTVha+Mogk+HEiPbQo04AATlShbkBdXAcfrq': not a valid identifier In fact, I get the same return (not a valid identifier) with any identifier. |
I did some more testing. First, Restic Backup does not support to use Rclone OneDrive (directly) as source. The cloud can only be a repository in that way. https://forum.restic.net/t/backing-up-remote-rclone-to-local-disk/1803. A possible workaround is to use
My workaround for now is not very sleek but more robust. I use rclone to copy a 1:1 backup to my local drive and then have restic make snapshots of this copy, using your script. Out of curiosity to test your script the correct way, I set it up the designed way (making snapshots local to OneDrive). I ge the same error messages on the invalid identifiers for the OneDrive section in the |
Apologies for the late reply. I think your workaround seems like a decent one. I understand it is not ideal but I am afraid this is just a limitation you have to work around. However I wouldn't dismiss mounting onedrive using fuse right away because it might work just fine for your usecase! If restic fails to back a file up because fuse couldn't provide it you should get a failed run and be alerted of that through When looking at the
If all else fails you could just configure the OneDrive remote in using Good luck! |
Hi,
I've been playing around with your script and trying to set it up now with OneDrive from Microsoft.
I'm failing to understand the setup in the .env. Could you give some more pointers?
The text was updated successfully, but these errors were encountered: