Skip to content

Commit

Permalink
refactor: added extensions to bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
petrknap committed Nov 13, 2023
1 parent d8dbab6 commit a1f21e3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: shellcheck **.bash
- run: find . -name '*.php' | xargs -tr shellcheck
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions raspberry_pi_zero.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ tmpfs /var/log tmpfs defaults,noatime,nosuid,size=64m 0 0
1. `sudo nano /etc/fstab` and insert `/dev/mapper/backup /media/backup ext4 defaults,rw 0 0`


### Create `/home/pi/remote_backup`
### Create `/home/pi/remote_backup.bash`

```bash
#!/usr/bin/env bash
Expand Down Expand Up @@ -166,7 +166,7 @@ if [[ ! -e "/media/backup/local" ]]; then
mkdir "/media/backup/local"
fi

./bin/remote_backup "/home/pi" 22 "/media/backup/local" "
./bin/remote_backup.bash "/home/pi" 22 "/media/backup/local" "
.home
.cache
.config
Expand All @@ -181,7 +181,7 @@ if [[ ! -e "/media/backup/server" ]]; then
mkdir "/media/backup/server"
fi

./bin/remote_backup "{user}@{public IP}:/home/" {public port} "/media/backup/server" "
./bin/remote_backup.bash "{user}@{public IP}:/home/" {public port} "/media/backup/server" "
*.img
*/.keep
user/.cache
Expand All @@ -201,8 +201,8 @@ if [[ ! -e "/media/backup/ftp/hosting" ]]; then
mkdir -p "/media/backup/ftp/hosting"
fi

./bin/wget_mirror "ftp://{public IP}:{public port}/{folder}" "/media/backup/ftp" {user} {password}
./bin/remote_backup "/media/backup/ftp/hosting" 22 "/media/backup/hosting" "
./bin/wget_mirror.bash "ftp://{public IP}:{public port}/{folder}" "/media/backup/ftp" {user} {password}
./bin/remote_backup.bash "/media/backup/ftp/hosting" 22 "/media/backup/hosting" "
*/.listing
" "" "${BACKUP}"
); fi
Expand Down

0 comments on commit a1f21e3

Please sign in to comment.