Commit 0fa6f0ca authored by Robert Saß's avatar Robert Saß

Script to merge vhost contents from backup into fresh vhost

parent e8a57790
TARGET_DIR="/home"
# Init variables
echo "Pfad zum Verzeichnis der Backups: "
read BACKUP_DIR
echo "Name des alten vhost aus dem Backup: "
read BACKUP_VHOST_DIR
echo "Name des neuen vhost auf dem lokalen System: "
read TARGET_VHOST_DIR
sudo cp "$BACKUP_DIR/$BACKUP_VHOST_DIR/public_html/*" "$TARGET_DIR/$TARGET_VHOST_DIR/public_html/"
echo "Fertig."
echo "Inhalte hier auf dem lokalen System: ls $TARGET_DIR/$TARGET_VHOST_DIR/public_html/"
ls -al "$TARGET_DIR/$TARGET_VHOST_DIR/public_html/"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment