Skip to content

Commit

Permalink
Merge pull request #45 from kjetilmjos/dev
Browse files Browse the repository at this point in the history
Release 7.4
  • Loading branch information
kjetilmjos authored Jul 20, 2023
2 parents 1df1337 + 5bbbc56 commit eb97f1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2023.7.4
- Changed default backup time to 1 week interval

## 2023.7.3
- Fixed issue with extra fi statement

Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "m-connect"
description: "Wireguard client for reverse proxy in cloud setup"
version: "2023.7.3"
version: "2023.7.4"
slug: "m_connect"
init: false
url: https://github.com/kjetilmjos/m-connect
Expand Down
5 changes: 2 additions & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/backup/run
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ FILE_SOURCE="/home/$USERNAME.tar"

#Find timestamp
CURRENT_TIMESTAMP=$(date +%s) # get the current timestamp in seconds since Unix epoch
TARGET_TIMESTAMP=$(( CURRENT_TIMESTAMP - 82800 )) # subtract 23 hours from the current timestamp. To make sure the backup creation time is accounted for.
#TARGET_TIMESTAMP=$(( CURRENT_TIMESTAMP - 3600 )) # subtract 23 hours from the current timestamp. To make sure the backup creation time is accounted for.

#TARGET_TIMESTAMP=$(( CURRENT_TIMESTAMP - 82800 )) # [One day] subtract 1 hours from the current timestamp. To make sure the backup creation time is accounted for.
TARGET_TIMESTAMP=$(( CURRENT_TIMESTAMP - 601200 )) # [One week] subtract 1 hours from the current timestamp. To make sure the backup creation time is accounted for.

# Check if known hosts file exists. If it does add data to it if does not create directory and file and add data
if bashio::fs.file_exists '~/.ssh/known_hosts'; then
Expand Down

0 comments on commit eb97f1b

Please sign in to comment.