Crates.io | cargo-backup |
lib.rs | cargo-backup |
version | 0.4.2 |
source | src |
created_at | 2022-05-03 17:10:16.677641 |
updated_at | 2023-12-05 16:06:59.149866 |
description | Backup utilty for cargo |
homepage | https://github.com/Kiramily/cargo-backup |
repository | https://github.com/Kiramily/cargo-backup |
max_upload_size | |
id | 579933 |
size | 88,881 |
Backup your installed cargo packages
cargo install cargo-backup
cargo backup <args>
--out | -o
- The output file where the backup will be written to. default backup.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>