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
8b8c8990
Commit
8b8c8990
authored
Mar 19, 2018
by
Robert Saß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update merge-vhost-backups.sh
parent
0fa6f0ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
merge-vhost-backups.sh
merge-vhost-backups.sh
+7
-2
No files found.
merge-vhost-backups.sh
View file @
8b8c8990
...
...
@@ -10,8 +10,13 @@ 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/"
sudo mv
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html"
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html~"
sudo mkdir
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html"
sudo chmod
0750
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html"
sudo chown
"
$TARGET_VHOST_DIR
"
:
"
$TARGET_VHOST_DIR
"
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html/"
sudo cp
-Rbav
"
$BACKUP_DIR
/
$BACKUP_VHOST_DIR
/public_html/"
*
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html/"
sudo chown
-Rfcv
"
$TARGET_VHOST_DIR
"
:
"
$TARGET_VHOST_DIR
"
"
$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
ls
-al
"
$TARGET_DIR
/
$TARGET_VHOST_DIR
/public_html/"
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