Skip to content

Commit

Permalink
fixes for backupperitem
Browse files Browse the repository at this point in the history
  • Loading branch information
1ARdotNO committed Nov 19, 2024
1 parent 36264e8 commit 05be87e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ udpate
- RETRY_SLEEP=600 #sets delay before retying again default to 600 seconds
- CLEANBACKUPDIRBEFORE=false #automatically deletes all files from the backup directory before process start
- CLEANBACKUPDIRAFTER=false #automatically deletes all files from the backup directory after process run
- ARCHIVEPERITEM=false #automatically create 1 archive in the backup per folder in the source directory
- BACKUPPERITEM=false #automatically create 1 backupitem per folder in the source directory
- HEALTHCHECKSURL=https://hc-ping.com/xxxxxxxxxxxx #disabled by default, put a healthchecks.io endpoint here or any other similar endpoint you want pinged with a "GET" when the job is successfull
#Bitwarden
- BW_CLIENTID=87asdhj1 #You API client ID
Expand Down
4 changes: 1 addition & 3 deletions backupscript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ elseif($ENV:PBS_PASSWORD -and $ENV:PBS_REPOSITORY -and $ENV:ARCHIVENAME){
$backupargs+=" --ns $ENV:PBS_NAMESPACE"
}
$backupargs+=" --backup-id $($_.name)"
"Executing: $backupargs"
Start-Process -Wait -Args $backupargs -FilePath proxmox-backup-client -nonewwindow -RedirectStandardOutput "/tmp/output-$($_.name).log" -RedirectStandardError "/tmp/error-$($_.name).log"
get-content "/tmp/output-$($_.name).log"
get-content "/tmp/error-$($_.name).log"
Expand Down Expand Up @@ -155,5 +154,4 @@ stop-transcript
$datetimeend=get-date

#Process logs
. /reporting.ps1

. /reporting.ps1
4 changes: 1 addition & 3 deletions postscript/post-github.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

#cleanup github files
gci $ENV:SOURCEDIR | remove-item -Recurse -Force


gci $ENV:SOURCEDIR | remove-item -Recurse -Force
2 changes: 1 addition & 1 deletion prescripts/github.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ $repos |where {$_ -like "**"} | ForEach-Object -parallel {
}
#go back to root directory
cd $ENV:SOURCEDIR
}
}

0 comments on commit 05be87e

Please sign in to comment.