Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
ccollect
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
ungleich@saz.sh
ccollect
Commits
018cd987
Commit
018cd987
authored
May 25, 2020
by
ungleich@saz.sh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'current' symlink to backup destinations
parent
7a7dec77
Pipeline
#1550
failed with stage
in 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ccollect
ccollect
+9
-0
No files found.
ccollect
View file @
018cd987
...
...
@@ -860,6 +860,15 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
else
_techo
"Warning: rsync failed with return code
$ret
."
fi
#
# Create symlink to newest backup
#
latest_dir
=
"
$(
ls
-td
${
ddir
}*
/ |
head
-1
)
"
||
\
_exit_err
"Failed to list content of
${
ddir
}
."
ln
-snf
"
${
latest_dir
}
"
"
${
ddir
}
current"
||
\
_exit_err
"Failed to create 'current' symlink."
#
# post_exec
...
...
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