Hi @Animosity022, thanks for your help. I do tried that option and ran command "rclone authorize 'onedrive'" and also tried with my app id and secret. then I received this message:
2020/02/14 14:31:19 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config.
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=F0RutxKBDqfP9wdKwBxqzw
Log in and authorize rclone for access
Waiting for code...
They key here is that 127.0.0.1 is not a normal network address.
In networking, this address simply means "on this machine" - also known as "localhost".
Trying to reach this address from another PC would therefore not work.
The easiest way is to use the automatic setup (Y), but this requires that you have a web-browser you can access the internet with on the system. If not you need to use (N) and follow the instructions there, but it is not as straight-forward.
It is not required to perform the second method (that is why it exists), but if you have the option of temporarily installing a browser on the server then that would certainly be a very easy fix to the problem as then you can just use the automatic method in rclone.
On that machine once you type it in, it'll pop open your default browser and you get a code. Paste that code back into the original window and you are done.
This is my terminal for my Mac Laptop I'm typing on now:
@Animosity022@thestigma thank you so much for your help. I installed Firefox on my vps and was able to complete the setup process. Next when I ran
rclone lsd remote:
I get this message:
2020/02/15 04:21:35 Failed to create file system for "remote:": didn't find section in config file
I tried to add my remote name after the colon, but that doesn't work.
is my config file not properly configured or something else is wrong? I really appreciate all the help.
Great that works! And I was able to copy files from my server to OndDrive. Is there a way to automate this backup? I want to make a backup every day and only keep the recent 3 backups.
Of course... a very simple script can be made, adn then you simply schedule it to run (in task-scheduler or NSSM for Windows - or cron for Linux) every X hours, or once pr day/week - whatever.
If you need help on the specifics, let me know. I am the most familiar with batch (Windows), but know bash basics enough to do this there also - as this script would only have be really basic to do what you want.
@thestigma Thanks a lot. I do need help. I have set up Google Drive remote, now I want to back up my vps ttml folder on a daily basis to my Google Drive. so every day it is going to create a zip file (16202020_backup), and only keeps the recent 3 days backup. Are there any tutorials that I can follow? Thank you
For how to schedule a script to run in cron or taskmanager there are dozens of tutorials on Google.
For how to make this script specifically, that is probably a bit harder to do.
I don't mind just helping you do this though.
Here are some relevant facts that I must have to do anything:
Need to know the OS you want to run the script on (where you send the data from)
Need to know the exact folder-paths for the source and destination (the same paths that worked for you when you did it manually)
Do you want to move, copy, or sync this data? (ask if you ae not sure about the differences).
I might actually have a script that already does this - at least in batch.
The only feature that does not already have would be the limit on how backups to keep...
But maybe I can add that feature when I have a little time later on...
if you want to keep older versions of modified files, then use this flag
you are going to need to program, create some source code.
what language do you plan to write your scripts?
i have a python script, 350+ lines, that executes rclone, fastcopy and 7zip file with time and date in the filenames.
another option is to use rclone mount the remote as x: drive. and you normal windows software to create the backups and zip files.
for example, this script will create a zip file directly on your remote.
rclone.exe mount secret: x: --vfs-cache-mode=writes
C:\data\rclone\scripts\7za.exe a x:\zork\zork.20191208.135853.7z C:\data\M\games\zork\