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

#1035 in Command line utilities

Download history 6/week @ 2024-02-19 4/week @ 2024-02-26 80/week @ 2024-04-01

80 downloads per month

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

~4–15MB
~197K SLoC