Skip to content

Commit

Permalink
Use the configured path to expire amanda_data backups (#1185)
Browse files Browse the repository at this point in the history
use placeholder instead of static path

Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
maikjoe authored Oct 14, 2020
1 parent d06057b commit 75b26fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/amandaBackupDB.service-template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description=nightly Amanda backup
Type=oneshot
User=root
Group=root
ExecStart=/bin/bash -c 'cd /; /bin/tar czf %STORAGE/amanda-backups/amanda_data_$(date +%%Y%%m%%d%%H%%M%%S).tar.gz etc/amanda var/lib/amanda var/log/amanda; find /storage -name amanda_data_* -mtime +30 -delete' &> /dev/null
ExecStart=/bin/bash -c 'cd /; /bin/tar czf %STORAGE/amanda-backups/amanda_data_$(date +%%Y%%m%%d%%H%%M%%S).tar.gz etc/amanda var/lib/amanda var/log/amanda; find %STORAGE -name amanda_data_* -mtime +30 -delete' &> /dev/null
RemainAfterExit=yes

[Install]
Expand Down

0 comments on commit 75b26fc

Please sign in to comment.