Skip to content

Commit

Permalink
chore: add date format for backup (#5)
Browse files Browse the repository at this point in the history
* chore: add date format for backup

Signed-off-by: Nam <[email protected]>

* Update compatiable with multi bash version

Signed-off-by: Nam <[email protected]>

---------

Signed-off-by: Nam <[email protected]>
  • Loading branch information
namcxn authored Mar 1, 2024
1 parent c6c64ee commit 476ac68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/migrate-env-for-v0.2.8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ echo "Start Migrating Process"
echo "-----------------------"
echo "Backup env and docker-compose files"

cp .env .env_backup
cp docker-compose.yml docker-compose-backup.yml
now=$(date +"%m_%d_%Y_%M:%S")

cp .env .env_backup_$now
cp docker-compose.yml docker-compose-backup-$now.yml

echo "Finished backup for 2 files"

Expand Down

0 comments on commit 476ac68

Please sign in to comment.