rclone / rclone

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
https://rclone.org
MIT License
45.45k stars 4.07k forks source link

auto-update feature request #3269

Open MorphyDK opened 5 years ago

MorphyDK commented 5 years ago

Would it be possible to add an auto update function to rclone?

When running rclone config , add an option if rclone should auto update when a release is available.

Autoupdate should only work if no bigger changes are made, save the old version under /usr/bin/rclone_old.v1.xx etc :slight_smile: ?

Once a bigger update is made to rclone - lets say you make a rclone release that requires a reconfiguration of your rclone.conf file - the rclone should prompt on connection via ssh like "Rclone update available, reconfigurations required for this update bla bla "

ncw commented 5 years ago

Great idea! I'd like to emulate restic self-update which seems to work really well.

MorphyDK commented 5 years ago

Cool thanks Nick :)

gary-kim commented 5 years ago

Can I implement something similar to restic's self-update? @ncw Also, how would interacting with the OS's package manager work? A lot of people on Debian or Debian based systems, for example, probably installed rclone using the .deb package, so would this cause the package manager to lose track of the installed rclone version?

ncw commented 5 years ago

Can I implement something similar to restic's self-update? @ncw

That would be great!

Also, how would interacting with the OS's package manager work? A lot of people on Debian or Debian based systems, for example, probably installed rclone using the .deb package, so would this cause the package manager to lose track of the installed rclone version?

A good question. I think if rclone was installed via install.sh then the update should do similar, whereas if it was installed from a .deb then the update should install the .deb.

I particularly like the GPG verification in restic self-update.

gary-kim commented 5 years ago

Unfortunately, I don't think I have time to work on this anymore. If anyone else could contribute this, that'd be great.

ivandeex commented 3 years ago

A bit of research comes up with

ivandeex commented 3 years ago

There is a nice package https://github.com/jpillora/overseer for creating monitorable, gracefully restarting, self-upgrading binaries in Go:

ivandeex commented 3 years ago

Sorry all. I was wrong when I renamed this. I can see now that this ticket actually requests automatic update feature. Reverting the name. Sorry for noise.