1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-22 03:34:17 +00:00

Backup at startup

This commit is contained in:
Steffo 2023-05-17 14:27:55 +02:00
parent 7d2fe5b4be
commit 1e4c264ca0
Signed by: steffo
GPG key ID: 2A24051445686895
7 changed files with 49 additions and 1 deletions

8
.idea/.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

10
.idea/misc.xml Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="ASK" />
<option name="description" value="" />
</component>
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/docker-backup-duplicity.iml" filepath="$PROJECT_DIR$/.idea/docker-backup-duplicity.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View file

@ -14,7 +14,7 @@ WORKDIR /var/lib/duplicity
ENV HOME="/var/lib/duplicity"
# Configure entrypoint and command
ENTRYPOINT ["crond", "-f", "-d", "5"]
ENTRYPOINT ["./entrypoint.sh"]
CMD []
# Add image labels

7
entrypoint.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
echo "Running first backup..."
./backup.sh
echo "Running cron for daily backups..."
crond -f -d 5 -l info