mirror of
https://github.com/YunoHost-Apps/pluxml_ynh.git
synced 2024-09-03 20:16:02 +02:00
[enh] adding backup and restore scripts
This commit is contained in:
parent
3d66fcd610
commit
57d4c06538
2 changed files with 18 additions and 0 deletions
9
scripts/backup
Normal file
9
scripts/backup
Normal file
|
@ -0,0 +1,9 @@
|
|||
#! /bin/bash
|
||||
|
||||
app=pluxml
|
||||
app_path=/var/www/$app
|
||||
save_path=$1
|
||||
|
||||
sudo mkdir -p $save_path
|
||||
sudo cp -R $app_path/data $save_path/
|
||||
sudo cp $app_path/config.php $save_path/
|
9
scripts/restore
Normal file
9
scripts/restore
Normal file
|
@ -0,0 +1,9 @@
|
|||
#! /bin/bash
|
||||
|
||||
app=pluxml
|
||||
app_path=/var/www/$app
|
||||
save_path=$1
|
||||
|
||||
sudo cp $save_path/config.php $app_path/
|
||||
sudo cp -R $save_path/data $app_path/
|
||||
sudo chown -R www-data: $app_path/data
|
Loading…
Add table
Reference in a new issue