-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix for dalishot backup * testing backup * testing backup * testing backup * testing backup * cleanup * exclude subxt Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
- Loading branch information
1 parent
cab861b
commit dea3314
Showing
4 changed files
with
75 additions
and
758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: Create Backup for Picasso nodes | ||
hosts: all | ||
become: root | ||
tasks: | ||
- name: Run Backup Script | ||
become: true | ||
shell: | | ||
#!/bin/bash | ||
DATE=$(date +'%m-%d-%Y') | ||
HOST=$(echo $HOSTNAME) | ||
FILENAME=$HOST-$DATE.zip | ||
BACKUP_DIR="/var/lib/composable-data/chains" | ||
GS_BUCKET="dali-chachacha-data-store" | ||
sudo zip -r $FILENAME $BACKUP_DIR | ||
sudo gsutil mv $FILENAME gs://$GS_BUCKET/ | ||
args: | ||
executable: /bin/bash | ||
register: stdout |
Oops, something went wrong.