Add backup/restore scripts

This commit is contained in:
Julien VAUBOURG
2015-07-25 16:33:57 +02:00
parent 99f5652af4
commit 6bc8691d4d
4 changed files with 37 additions and 3 deletions

10
scripts/backup Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# The parameter $1 is the backup directory location
# which will be compressed afterward
backup_dir="${1}/apps/vpnclient"
mkdir -p "${backup_dir}/"
sudo cp -a /etc/openvpn/keys/ "${backup_dir}/"
exit 0