Backup your installed cargo packages
sh
cargo install cargo-backup
sh
cargo backup <args>
--out | -o
- The output file where the backup will be written to. default backup.json
sh
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.
sh
cargo sync <sub-command> <args>
sh
cargo sync login <args>
--force | -f
- Ignores the current Credentials.Either push a new backup or Updates the old one.
sh
cargo sync push <args>
Pulls the backup from the gist repository.
A valid gist id needs to be set for this.
sh
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. sh
cargo sync set-id <gist-id>