I´m new to rclone.
I install it and I have onedrive configured.
I want to backup from my vpn my site to onedrive.
$ rclone copy /home/user/websitebackup/ onedrive: /websitebackup-onedrive
but always have error
Usage:
rclone copy source:path dest:path [flags]
Flags:
-h, --help help for copy
Use “rclone [command] --help” for more information about a command.
Use “rclone help flags” for to see the global flags.
Use “rclone help backends” for a list of supported services.
Command copy needs 2 arguments maximum
cron is a little picky at times as you don’t usually get all your environment variables so it might require a little trial and error.
For a simple example, I use a script like this to clean up my trash every night on my Google Drive. I have to put my environment variable for where my rclone is in the script.
I have to study a little more about rclone. I use virtualmin and I want to backup the virtualmin site backup into onedrive. I have 1TB onedrive, But Im trying to get how I can remove older backups after 30 days.
rclone doesn’t really handle backups so well. You can use the --backup-dir command to move ‘replaced’ files to a backup directory while keeping your location you sync’ed to ‘current’. You can’t really tell it to remove older backups unless you structure it yourself.
You could also backup to a folder everytime with a date name and then write a bash script to remove directories older than ‘X’ days with the caveat that you’ll be backing up that TB every time. Thats a lot of wasted data. Just depends on what you want to do.
If you want a full flegged backup using rclone as a backend, i’d suggest you look at ‘restic’ which can use rclone as a backend and give you real backup sets.