I have been recommended by a friend to try RClone for my task, but I have no experience with it yet. I don't understand the concepts mentioned in documents. I would be thankful for some pointers.
What is your rclone version (output from rclone version)
1.57.0
Which cloud storage system are you using?
Virtual machine on Google Cloud computing engine
Task description
I have a server running on a GCloud VM instance (Debian 11). It has a small data folder (~5MB) that needs to be backed up daily (or as close to daily as possible) either as a folder or zipped file. I intend to back it up on my local personal machine (MacBook Pro, Intel 64, Monterey), which I use almost daily.
Below the check list that I think I will need to cover:
Setup RClone on my local MacOS
Config RClone to manually pull from VM
Setup cron job to pull daily from VM, probably 10:0AM daily, and save it to local MacOS with a datetime-based name
[Optional extra] Setup cron job to clear obsolete copies (>7 days old)
The problem is:
a. I'm not sure whether my checklist is suitable for the task
b. If it is, I don't know which guide I should read to start: Which option should I use to install RClone, using homebrew, or binary, or docker? How to setup security to access the VM? How to setup cron jobs? ...
It would be very helpful if somebody could break the checklist down into smaller step-by-step subtask so I could understand exactly what I will need to do. Even more helpful if you can point towards relevant guides.
Yes
I have configured a remote which looks something like this
[remote_namp]
type = sftp
host = 11.22.33.44 # (not real)
user = mac19_rclone
key_file = ~/.ssh/id_rsa
pubkey_file = ~/.ssh/id_rsa.pub
But rclone sync threw error "public key file is not a certificate file"
A section in the doc says If you have a certificate you may use it to sign your public key, creating a separate SSH user certificate that should be used instead of the plain public key extracted from the private key. Then you must provide the path to the user certificate public key file in pubkey_file.
And I have no idea how to create the certificate and sign my existing key.
If a new private-public pair must be generated (if the existing key cannot be used), then it must be acceptable to Google Cloud VM (I tried using a .PEM key but it apparently was the wrong format)
Today I've successfully did my first cloning, using SFTP connection and authentication with ssh-agent.
The next task is cron job for daily backup, and optionally cronjob to clean up old backups.
Before the cronjob, which I suspect wont be a problem. I'm looking for a way to save the downloaded folder as a file, such as zip, or any other format.