This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ddrescue -d -n -N -v /dev/sde /media/pathrik/Backup Plus/2TB Bkup/mypassport.img mypassport_merge.logfile | |
ddrescue -d -r3 -v /dev/sde /media/pathrik/Backup Plus/2TB Bkup/mypassport.img mypassport_merge.logfile | |
ddrescue -d -r3 -R -v /dev/sde /media/pathrik/Backup Plus/2TB Bkup/mypassport.img mypassport_merge.logfile | |
/dev/sde --> Drive that is not getting recognized(source) | |
/media/pathrik/Backup Plus/2TB Bkup/mypassport.img --> Location where the above drives cloned image should be written to (target) | |
mypassport_merge.logfile -->file that stores the progress so that we can stop and resume as needed | |
The first command does a clone of sectors that it can read quickly. It skips sectors it is not able read. | |
Second command does extra work to clone of skipped sections from previous command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$env:POM_VERSION = ([xml](Get-Content .\pom.xml)).project.version | |
Update-AppveyorBuild -Version "$env:POM_VERSION.$env:APPVEYOR_BUILD_NUMBER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$token = $env:API_TOKEN #should be defined as scure variable | |
$headers = @{ | |
"Authorization" = "Bearer $token" | |
"Content-type" = "application/json" | |
} | |
$apiURL = "https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG" | |
$history = Invoke-RestMethod -Uri "$apiURL/history?recordsNumber=2" -Headers $headers -Method Get |