githubEdit

roles-and-services

#pillage #pillaging

Roles and services (attacking backup server)

Tool - Resticarrow-up-right

Initialize backup directory

mkdir E:\restic2; restic.exe -r E:\restic2 init

Backup up a directory

$env:RESTIC_PASSWORD = 'Password'
restic.exe -r E:\restic2\ backup C:\SampleFolder

Back up a directory with volume shadow copy (vss)

restic.exe -r E:\restic2\ backup C:\Windows\System32\config --use-fs-snapshot

Check backups saved in repository (check ID)

restic.exe -r E:\restic2\ snapshots

Restore a backup with ID

restic.exe -r E:\restic2\ restore 9971e881(ID) --target C:\Restore

If environment variable RESTIC_PASSWORD is not set, you have to provide the password, backups are saved in snapshots directory.

Last updated