7 unstable releases

0.4.2 Dec 5, 2023
0.4.1 Oct 6, 2022
0.3.1 Jul 14, 2022
0.2.0 May 3, 2022
0.1.0 May 3, 2022

#1792 in Command line utilities

MIT license

33KB
762 lines

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

Dependencies

~5–17MB
~179K SLoC