Last active
March 16, 2022 22:56
-
-
Save Brottweiler/a32a2d79e211f979884b3a6ac2e2cdb9 to your computer and use it in GitHub Desktop.
Empty trash older than 30 days using systemd timer https://github.com/andreafrancia/trash-cli#how-to-auto-delete-files-older-that-30-days
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Empty trash older than 30 days | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/trash-empty 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Empty trash older than 30 days daily | |
[Timer] | |
OnCalendar=daily | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment