Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
fix: chown backup file (fixes evilsocket#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Margaritelli committed Oct 26, 2019
1 parent fadbfdd commit dbd4765
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ for file in "${FILES_TO_BACKUP[@]}"; do
ssh pi@$UNIT_HOSTNAME "sudo cp -r $file /tmp/backup$dir" > /dev/null
done

ssh pi@$UNIT_HOSTNAME "sudo chown pi:pi -R /tmp/backup" > /dev/null

echo "@ pulling from $UNIT_HOSTNAME ..."

rm -rf /tmp/backup
Expand Down

0 comments on commit dbd4765

Please sign in to comment.