apt install tgt
Create a new target named "target1":
tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2020-01.es.tinaja:target1
Delete a specific target:
| #!/usr/bin/env python3 | |
| BACKUP_FILE = 'backup.ab' | |
| # Constants | |
| # ref: https://github.com/omnirom/android_bootable_recovery/blob/android-7.1/adbbu/twadbstream.h | |
| TWRP = b'TWRP' + b'\x00\x00\x00\x00' | |
| TWSTREAMHDR = b'twstreamheader' | |
| TWFN = b'twfilename' |