Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed Oct 12, 2022
1 parent 2986f6d commit f1730b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ chown:

.PHONY: backup
backup:
$(MAKE) down
sudo bash _helpers/backup.sh $(shell id -g) $(shell id -u) var _storage
$(MAKE) up

var/ _storage/ _share:
mkdir -p "$@"
Expand Down
2 changes: 2 additions & 0 deletions _helpers/backup.sh → _scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ shift
USR_UID="$1"
shift

/home/linuxbrew/.linuxbrew/bin/docker-compose down
tar -cvf "${BACKUP_FILENAME}" "$@"
chown "${USR_GID}:${USR_UID}" "${BACKUP_FILENAME}"
/home/linuxbrew/.linuxbrew/bin/docker-compose up -d

0 comments on commit f1730b1

Please sign in to comment.