Skip to content

Commit

Permalink
fix: add missing sample (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmkerr authored Jun 12, 2024
1 parent 45f7852 commit 961d50a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions samples/scripts/backup-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# Make sure you have a backup directory.
mkdir ~/backup

# Copy over alicloud, aws, azure, gcp, and ssh config and credentials.
cp ~/.aliyun/config.json ~/backup/settings/aliyun/
cp ~/.aws/config ~/backup/settings/aws/
cp ~/.aws/credentials ~/backup/settings/aws/
cp ~/.azure/config ~/backup/settings/azure/
cp ~/.config/gcloud/credentials.db ~/backup/settings/gcloud/
cp ~/.ssh/config ~/backup/settings/ssh/
cp ~/.ssh/id_rsa ~/backup/settings/ssh/ # Is this safe?
cp ~/.ssh/id_rsa.pub ~/backup/settings/ssh/

0 comments on commit 961d50a

Please sign in to comment.