Skip to content

Commit

Permalink
backup all .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Oct 7, 2023
1 parent 569d615 commit 81fd654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/vps_backup
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ expect_file_and_copy "$NOTIFY_BOT/token.yaml" "$BACKUP_NOTIFY"
expect_file_and_copy "$NOTIFY_BOT/old" "$BACKUP_NOTIFY"
expect_file_and_copy "$NOTIFY_BOT/export.json" "$BACKUP_NOTIFY"
expect_file_and_copy "$COUNTDOWN_BOT/token.yaml" "$BACKUP_COUNTDOWN"
expect_file_and_copy "$DBSENTINEL/.env" "$BACKUP_DIR/dbsentinel_env"
expect_file_and_copy "$PROJECTS/.env" "$BACKUP_DIR/projects_env"
optional_copy "$COUNTDOWN_BOT/server.db" "$BACKUP_COUNTDOWN"
optional_copy "$HOME/.bashrc" "$BACKUP_DIR"
optional_copy "$HOME/.bash_ext" "$BACKUP_DIR"
optional_copy "$HOME/.bash_profile" "$BACKUP_DIR"
optional_copy "$HOME/.bash_history" "$BACKUP_DIR"

fd . ~/code/ --type d | xargs -P 5 -I {} find {} -maxdepth 1 -name '.env' | rsync -vh --files-from=- / "$BACKUP_DIR"

expect_dir_and_copy "/etc/netdata"
expect_dir_and_copy "/etc/nginx"
expect_dir_and_copy "/etc/fail2ban"
Expand Down

0 comments on commit 81fd654

Please sign in to comment.