Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmo
ISPConfig 3
Commits
f16295d8
Unverified
Commit
f16295d8
authored
3 years ago
by
Helmo
Browse files
Options
Downloads
Patches
Plain Diff
whitespace
parent
757bcbcd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/scripts/handle_mailbox_soft_deleted.sh
+1
-1
1 addition, 1 deletion
server/scripts/handle_mailbox_soft_deleted.sh
with
1 addition
and
1 deletion
server/scripts/handle_mailbox_soft_deleted.sh
+
1
−
1
View file @
f16295d8
...
@@ -33,7 +33,7 @@ echo tar cvfj "$backupfile" --remove-files "$dir" 2> >( grep -v "tar: Removin
...
@@ -33,7 +33,7 @@ echo tar cvfj "$backupfile" --remove-files "$dir" 2> >( grep -v "tar: Removin
}
}
# List deleted mailboxs to archive
# List deleted mailboxs to archive
# -mtime +7 ===> Only mailboxes deleted more then 7 days ago
# -mtime +7 ===> Only mailboxes deleted more then 7 days ago
# Test that the last dir component matches e.g. xxx-20220101094242 (14 digits)
# Test that the last dir component matches e.g. xxx-20220101094242 (14 digits)
# command: xxx-`date "+%Y%m%d%H%M%S"`
# command: xxx-`date "+%Y%m%d%H%M%S"`
find /var/vmail/
*
/[a-z0-9.-]
*
-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
-maxdepth
0
-type
d
-mtime
+
$delay_days
|
while
read
line
;
do
find /var/vmail/
*
/[a-z0-9.-]
*
-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
-maxdepth
0
-type
d
-mtime
+
$delay_days
|
while
read
line
;
do
...
...
This diff is collapsed.
Click to expand it.
Helmo
@helmo
mentioned in commit
7de8304a
·
2 years ago
mentioned in commit
7de8304a
mentioned in commit 7de8304a8f4116845d773f736f3df79dea8ea0c6
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment