Skip to content
stop_before_migration 167 B
Newer Older
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed
#!/bin/bash -eux

domain=$1
ip=$2
cd /data/domains/$domain
Pierre Ozoux's avatar
Pierre Ozoux committed
./scripts/backup
Pierre Ozoux's avatar
WIP
Pierre Ozoux committed

systemctl stop u@$domain
systemctl disable u@$domain

tar cvzf /home/core/${domain}.tgz .