Skip to content

Commit

Permalink
give absolute paths to utilities in backup script for cron
Browse files Browse the repository at this point in the history
  • Loading branch information
ZNielsen committed Sep 14, 2022
1 parent 2ee0faf commit 05d14c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service_files/podcast_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ port="$2"
podcast_dir="/etc/podracer/podcasts"

# Zip up podcast dir
tmp_dir="$(mktemp -d)"
tmp_dir="$(/bin/mktemp -d)"
bak="$tmp_dir/podcast.bak.zip"
zip -r "$bak" "$podcast_dir"
/bin/zip -r "$bak" "$podcast_dir"

# Push that zip to the backup location
echo "Pushing $bak to $dest on port $port"
scp -P $port "$bak" "$dest"
/bin/scp -P $port "$bak" "$dest"

0 comments on commit 05d14c7

Please sign in to comment.