23 lines
1.2 KiB
Bash
Executable File
23 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
APACHE=$(httpd -v | grep "version" | awk '{print $3}' | awk -F/ '{print $2}')
|
|
PHP=$(php -v | grep "cli" | awk '{print $2}')
|
|
|
|
cd /Users/bruno/Documents/config\ web\ \(homebrew\)/
|
|
|
|
if [ ! -d "apache $APACHE" ]; then mkdir "apache $APACHE"; fi
|
|
cp /usr/local/etc/httpd/httpd.conf /Users/bruno/Documents/config\ web\ \(homebrew\)/apache\ $APACHE/
|
|
cp /usr/local/etc/httpd/extra/httpd-vhosts.conf /Users/bruno/Documents/config\ web\ \(homebrew\)/apache\ $APACHE/
|
|
|
|
if [ ! -d "php $PHP" ]; then mkdir "php $PHP"; fi
|
|
cp /usr/local/etc/php/7.2/php.ini /Users/bruno/Documents/config\ web\ \(homebrew\)/php\ $PHP/
|
|
|
|
cp /Users/bruno/.bash_profile /Users/bruno/Documents/Backups/Bruno/
|
|
cp /Users/bruno/.gitconfig /Users/bruno/Documents/Backups/Bruno/
|
|
cp /Users/bruno/.wg++/WebGrab++.config.xml /Users/bruno/Documents/Backups/Bruno/
|
|
cp /Users/bruno/.nanorc /Users/bruno/Documents/Backups/Bruno/
|
|
cp -R /Users/bruno/.nanosyntax /Users/bruno/Documents/Backups/Bruno/
|
|
cp -R /Users/bruno/.ssh /Users/bruno/Documents/Backups/Bruno/
|
|
cp -R /Users/bruno/.vnc /Users/bruno/Documents/Backups/Bruno/
|
|
cp -R /Users/bruno/.kymsu /Users/bruno/Documents/Backups/Bruno/
|
|
terminal-notifier -title 'Backups' -message 'Sauvegarde terminée !' -sound 'Glass'
|