Last active
December 12, 2023 13:57
-
-
Save dongbum/57980067d164df9920e905f17d1d5f3c to your computer and use it in GitHub Desktop.
Revisions
-
dongbum revised this gist
Dec 12, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,5 @@ today=$(date "+%Y%m%d") now=$(date "+%H%M%S") docker-compose exec -T database pg_dump -U teslamate teslamate > /disk1/backup/teslamate/teslamate_${today}_${now}.backup chown viper9:users /disk1/backup/teslamate/teslamate_${today}.backup echo "Backup complete." -
dongbum created this gist
Jul 29, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash today=$(date "+%Y%m%d") now=$(date "+%H%M%S") docker-compose exec -T database pg_dump -U teslamate teslamate > /disk1/backup/teslamate/teslamate_${today}_${now}.backup chown viper9.users /disk1/backup/teslamate/teslamate_${today}.backup echo "Backup complete."