Skip to content

Kiramily/cargo-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

cargo packages backup utility

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages