Merge branch 'testing' into envvar
This commit is contained in:
@@ -5,10 +5,9 @@ set -e
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# The parameter $1 is the backup directory location
|
||||
# which will be compressed afterward
|
||||
backup_dir=$1/apps/$app
|
||||
sudo mkdir -p $backup_dir
|
||||
# The first argument is the backup directory location for the app
|
||||
# from where the script is executed and which will be compressed afterward
|
||||
backup_dir=$1
|
||||
|
||||
# Backup sources & data
|
||||
sudo cp -a /var/www/$app/. $backup_dir/sources
|
||||
|
||||
Reference in New Issue
Block a user