Backup your installed cargo packages
cargo install cargo-backupcargo backup <args>--out | -o- The output file where the backup will be written to. defaultbackup.json
cargo restore --backup path/to/backup <args>--backup | -b- The backup file. required--skip-install | -i- Skips the installation of new packages.--skip-update | -u- Skips the packages to update.--skip-remove | -r- Skips the removal of packages not found in the backup.
Requires a Github account.
cargo sync <sub-command> <args>cargo sync login <args>--force | -f- Ignores the current Credentials.
Either push a new backup or Updates the old one.
cargo sync push <args>Pulls the backup from the gist repository. A valid gist id needs to be set for this.
cargo sync pull <args>--skip-install | -i- Skips the installation of new packages.--skip-update | -u- Skips the packages to update.--skip-remove | -r- Skips the removal of packages not found in the backup.
cargo sync set-id <gist-id>