Open MorphyDK opened 5 years ago
Great idea! I'd like to emulate restic self-update
which seems to work really well.
Cool thanks Nick :)
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?
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
.
Unfortunately, I don't think I have time to work on this anymore. If anyone else could contribute this, that'd be great.
A bit of research comes up with
There is a nice package https://github.com/jpillora/overseer for creating monitorable, gracefully restarting, self-upgrading binaries in Go:
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.
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 "