powershell:duplicati
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| powershell:duplicati [2026/08/26 15:52] – adm.wiki | powershell:duplicati [2026/09/01 10:32] (current) – adm.wiki | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== DUPLICATI (Single Path) ====== | ====== DUPLICATI (Single Path) ====== | ||
| - | **EN CONSTRUCCION** | + | **Esqueme de trabajo** |
| + | {{drawio> | ||
| -------------- | -------------- | ||
| **Para que sirve:** | **Para que sirve:** | ||
| Line 16: | Line 18: | ||
| $Path = read-host "RUTA* ejemplo c: | $Path = read-host "RUTA* ejemplo c: | ||
| $HashFile = join-path $PSScriptRoot " | $HashFile = join-path $PSScriptRoot " | ||
| + | |||
| + | $Count = 0 #contar hashes | ||
| Get-ChildItem -Path $Path -File -Recurse | ForEach-Object { | Get-ChildItem -Path $Path -File -Recurse | ForEach-Object { | ||
| $Hash = Get-FileHash -Path $_.FullName -Algorithm md5 | $Hash = Get-FileHash -Path $_.FullName -Algorithm md5 | ||
| + | $Count++ | ||
| + | |||
| + | Write-Host " | ||
| [PSCustomObject]@{ | [PSCustomObject]@{ | ||
| Line 63: | Line 70: | ||
| exit | exit | ||
| } | } | ||
| + | read-host " | ||
| </ | </ | ||
| - | |||
| - | **Esqueme de trabajo** | ||
| - | {{drawio> | ||
| **RUN** | **RUN** | ||
| - | {{.: | ||
| - | **PATH= E:\** | + | {{.:pasted: |
| + | {{.: | ||
| {{.: | {{.: | ||
| + | {{.: | ||
| + | {{.: | ||
| + | {{.: | ||
powershell/duplicati.1787752348.txt.gz · Last modified: by adm.wiki
