Created
March 2, 2022 13:08
-
-
Save jgomo3/b9743200560728f9de6d1d704866f7bd to your computer and use it in GitHub Desktop.
Backup in `backups` folder sufixing date
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 characters
#!/bin/bash | |
PRJ=$1 | |
BCKP="backups/$PRJ_`date +%Y-%m-%d_%H:%M`" | |
install -d $BCKP | |
rsync -av --progress $PRJ/ $BCKP/phmsrails --exclude log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment