Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
server-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Brainedia
server-scripts
Commits
0fa6f0ca
Commit
0fa6f0ca
authored
Mar 19, 2018
by
Robert Saß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script to merge vhost contents from backup into fresh vhost
parent
e8a57790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
merge-vhost-backups.sh
merge-vhost-backups.sh
+17
-0
No files found.
merge-vhost-backups.sh
0 → 100644
View file @
0fa6f0ca
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment