cargo-backup

Crates.iocargo-backup
lib.rscargo-backup
version0.4.2
sourcesrc
created_at2022-05-03 17:10:16.677641
updated_at2023-12-05 16:06:59.149866
descriptionBackup utilty for cargo
homepagehttps://github.com/Kiramily/cargo-backup
repositoryhttps://github.com/Kiramily/cargo-backup
max_upload_size
id579933
size88,881
Emily (Kiramily)

documentation

README

Cargo Backup

Backup your installed cargo packages

installation

cargo install cargo-backup

Usage

Backup

cargo backup <args>

Arguments

  • --out | -o - The output file where the backup will be written to. default backup.json

Restore

cargo restore --backup path/to/backup <args>

Arguments

  • --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.

Sync

Requires a Github account.

cargo sync <sub-command> <args>

Login

cargo sync login <args>

Arguments

  • --force | -f - Ignores the current Credentials.

Push

Either push a new backup or Updates the old one.

cargo sync push <args>

Pull

Pulls the backup from the gist repository. A valid gist id needs to be set for this.

cargo sync pull <args>

Arguments

  • --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.

set-id

cargo sync set-id <gist-id>

License

MIT

Commit count: 40

cargo fmt