-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 1.28 KB
/
Makefile
File metadata and controls
42 lines (31 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Makefile for BackupDubs (Bash and PowerShell versions)
.PHONY: all help bash-list bash-usb bash-no-structure bash-custom-dest ps-list ps-usb ps-no-structure ps-custom-dest
all: help
help:
@echo "Available targets:"
@echo " bash-list List available USB drives (bash)"
@echo " bash-usb Backup from USB with structure (bash)"
@echo " bash-no-structure Backup without structure (bash)"
@echo " bash-custom-dest Backup to custom destination (bash)"
@echo " ps-list List available USB drives (PowerShell)"
@echo " ps-usb Backup from USB with structure (PowerShell)"
@echo " ps-no-structure Backup without structure (PowerShell)"
@echo " ps-custom-dest Backup to custom destination (PowerShell)"
# Bash targets
bash-list:
./backupdubs.sh --help
bash-usb:
./backupdubs.sh MyUSBDrive
bash-no-structure:
./backupdubs.sh MyUSBDrive --no-structure
bash-custom-dest:
./backupdubs.sh MyUSBDrive -d ./MyBackupFolder
# PowerShell targets
ps-list:
pwsh -File ./backupdubs.ps1 -Help
ps-usb:
pwsh -File ./backupdubs.ps1 -USB_NAME "MyUSBDrive"
ps-no-structure:
pwsh -File ./backupdubs.ps1 -USB_NAME "MyUSBDrive" -NoStructure
ps-custom-dest:
pwsh -File ./backupdubs.ps1 -USB_NAME "MyUSBDrive" -Destination "C:\\MyBackup"