mirror of
https://github.com/Steffo99/backup-duplicity.git
synced 2024-12-22 03:34:17 +00:00
Merge branch 'v0_2'
# Conflicts: # .idea/modules.xml
This commit is contained in:
commit
f3809f4b0f
5 changed files with 35 additions and 1 deletions
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal 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
|
9
.idea/docker-backup-duplicity.iml
Normal file
9
.idea/docker-backup-duplicity.iml
Normal 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
10
.idea/misc.xml
Normal 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>
|
|
@ -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
7
entrypoint.sh
Executable 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
|
Loading…
Reference in a new issue