Skip to content
Snippets Groups Projects
Commit c856454d authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Keeps only 2 weeks of backup

parent f8e086b9
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ExecStartPre=/bin/bash -euxc ' \ ...@@ -12,7 +12,7 @@ ExecStartPre=/bin/bash -euxc ' \
--name clean-%i \ --name clean-%i \
-v /root:/root \ -v /root:/root \
indiepaas/duplicity \ indiepaas/duplicity \
remove-older-than 4W --force \ remove-older-than 2W --force \
sftp://${BACKUP_DESTINATION}/%i' sftp://${BACKUP_DESTINATION}/%i'
ExecStartPre=/bin/bash -euxc '/data/domains/%i/BACKUP' ExecStartPre=/bin/bash -euxc '/data/domains/%i/BACKUP'
ExecStart=/bin/bash -euxc ' \ ExecStart=/bin/bash -euxc ' \
......
...@@ -16,7 +16,7 @@ ExecStartPre=/bin/bash -euxc ' \ ...@@ -16,7 +16,7 @@ ExecStartPre=/bin/bash -euxc ' \
--name clean-%i \ --name clean-%i \
-v /root:/root \ -v /root:/root \
indiepaas/duplicity \ indiepaas/duplicity \
remove-older-than 4W --force \ remove-older-than 2W --force \
sftp://${BACKUP_DESTINATION}/%i' sftp://${BACKUP_DESTINATION}/%i'
ExecStartPre=/bin/bash -euxc '\ ExecStartPre=/bin/bash -euxc '\
if [ -d /data/domains/%i/mysql ]; then \ if [ -d /data/domains/%i/mysql ]; then \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment