Skip to content

Commit 0c2c5c2

Browse files
authored
Merge pull request #11 from errnair/errnair/cleanup-deprecate-old-scripts
Cleanup: Deprecate and remove old script locations LGTM
2 parents edc45f2 + c6bafe5 commit 0c2c5c2

26 files changed

+503
-615
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
cat <<'EOF'
4+
================================================================================
5+
DEPRECATION NOTICE
6+
================================================================================
7+
8+
This script has been DEPRECATED and moved to a new location.
9+
10+
OLD LOCATION:
11+
miscellaneous/checkssh_conn.sh
12+
13+
NEW LOCATION:
14+
installation_scripts/checkssh_conn.sh
15+
16+
WHAT CHANGED:
17+
- Multi-OS support (RHEL/Rocky/AlmaLinux/Ubuntu/Debian)
18+
- Connection timeout configuration
19+
- Port specification support
20+
- Multiple host checking
21+
- Detailed connection diagnostics
22+
- Known hosts handling options
23+
24+
MIGRATION:
25+
Old: ./miscellaneous/checkssh_conn.sh
26+
New: ./installation_scripts/checkssh_conn.sh
27+
28+
This deprecated file will be removed in a future release.
29+
Please update your scripts to use the new location.
30+
================================================================================
31+
EOF
32+
33+
exit 1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
3+
cat <<'EOF'
4+
================================================================================
5+
DEPRECATION NOTICE
6+
================================================================================
7+
8+
This script has been DEPRECATED and moved to a new location.
9+
10+
OLD LOCATION:
11+
miscellaneous/dirbackup.sh
12+
13+
NEW LOCATION:
14+
utilities/dirbackup.sh
15+
16+
WHAT CHANGED:
17+
- Multi-OS support
18+
- Multiple compression formats (gz, bz2, xz)
19+
- GPG encryption support
20+
- Backup verification with SHA256
21+
- Retention policy (automatic cleanup)
22+
- Incremental backup support (rsync)
23+
- Exclude patterns
24+
- Email notifications
25+
- Progress indication and elapsed time
26+
27+
MIGRATION:
28+
Old: ./miscellaneous/dirbackup.sh /path
29+
New: ./utilities/dirbackup.sh /path
30+
31+
EXAMPLES:
32+
./utilities/dirbackup.sh /etc
33+
ENCRYPT=yes ./utilities/dirbackup.sh /var/www
34+
RETENTION_DAYS=7 ./utilities/dirbackup.sh /home
35+
36+
This deprecated file will be removed in a future release.
37+
Please update your scripts to use the new location.
38+
================================================================================
39+
EOF
40+
41+
exit 1
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env bash
2+
3+
cat <<'EOF'
4+
================================================================================
5+
DEPRECATION NOTICE
6+
================================================================================
7+
8+
This script has been DEPRECATED and moved to a new location.
9+
10+
OLD LOCATION:
11+
miscellaneous/etcbackup.sh
12+
13+
NEW LOCATION:
14+
utilities/etcbackup.sh
15+
16+
WHAT CHANGED:
17+
- Now a wrapper around utilities/dirbackup.sh
18+
- Inherits all dirbackup.sh features (encryption, retention, etc.)
19+
- Optimized defaults for /etc (90-day retention)
20+
- All dirbackup.sh options available
21+
22+
MIGRATION:
23+
Old: ./miscellaneous/etcbackup.sh
24+
New: ./utilities/etcbackup.sh
25+
26+
EXAMPLES:
27+
./utilities/etcbackup.sh
28+
ENCRYPT=yes ./utilities/etcbackup.sh
29+
RETENTION_DAYS=30 ./utilities/etcbackup.sh
30+
31+
This deprecated file will be removed in a future release.
32+
Please update your scripts to use the new location.
33+
================================================================================
34+
EOF
35+
36+
exit 1
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env bash
2+
3+
cat <<'EOF'
4+
================================================================================
5+
DEPRECATION NOTICE
6+
================================================================================
7+
8+
This script has been DEPRECATED and moved to a new location.
9+
10+
OLD LOCATION:
11+
miscellaneous/passgen.sh
12+
13+
NEW LOCATION:
14+
utilities/passgen.sh
15+
16+
WHAT CHANGED:
17+
- Multiple password types (alphanumeric, special, passphrase, PIN)
18+
- Password strength assessment with entropy calculation
19+
- Avoid ambiguous characters option
20+
- Multiple output formats (text, JSON, CSV)
21+
- Clipboard integration
22+
- Bulk password generation
23+
24+
MIGRATION:
25+
Old: ./miscellaneous/passgen.sh [count] [length]
26+
New: ./utilities/passgen.sh [count] [length]
27+
28+
EXAMPLES:
29+
./utilities/passgen.sh 10 32
30+
PASSWORD_TYPE=special ./utilities/passgen.sh 5 24
31+
PASSWORD_TYPE=passphrase ./utilities/passgen.sh 1 5
32+
OUTPUT_FORMAT=csv ./utilities/passgen.sh 100 16 > passwords.csv
33+
34+
This deprecated file will be removed in a future release.
35+
Please update your scripts to use the new location.
36+
================================================================================
37+
EOF
38+
39+
exit 1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
3+
cat <<'EOF'
4+
================================================================================
5+
DEPRECATION NOTICE
6+
================================================================================
7+
8+
This script has been DEPRECATED and moved to a new location.
9+
10+
OLD LOCATION:
11+
miscellaneous/webpagedl.sh
12+
13+
NEW LOCATION:
14+
utilities/webpagedl.sh
15+
16+
WHAT CHANGED:
17+
- Multi-method support (wget, curl, aria2c)
18+
- Retry logic with configurable attempts
19+
- Rate limiting and timeout support
20+
- Recursive and mirror modes
21+
- HTTP authentication support
22+
- Resume capability
23+
- Download verification
24+
- Progress indication
25+
26+
MIGRATION:
27+
Old: ./miscellaneous/webpagedl.sh <url>
28+
New: ./utilities/webpagedl.sh <url>
29+
30+
EXAMPLES:
31+
./utilities/webpagedl.sh https://example.com
32+
METHOD=curl ./utilities/webpagedl.sh https://example.com
33+
RECURSIVE=yes RECURSIVE_DEPTH=2 ./utilities/webpagedl.sh https://example.com
34+
MIRROR_MODE=yes ./utilities/webpagedl.sh https://example.com
35+
36+
This deprecated file will be removed in a future release.
37+
Please update your scripts to use the new location.
38+
================================================================================
39+
EOF
40+
41+
exit 1

miscellaneous/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Deprecated - Miscellaneous Scripts
2+
3+
This directory contains deprecated scripts that have been reorganized into the `utilities/` and `installation_scripts/` directories.
4+
5+
## Status
6+
7+
All scripts in this directory have been **deprecated** and moved to better-organized locations with enhanced features.
8+
9+
## Migration
10+
11+
### Script Locations
12+
13+
| Old Location (Deprecated) | New Location | Category |
14+
|--------------------------|--------------|----------|
15+
| `dirbackup.sh` | `../utilities/dirbackup.sh` | Utility |
16+
| `etcbackup.sh` | `../utilities/etcbackup.sh` | Utility |
17+
| `passgen.sh` | `../utilities/passgen.sh` | Utility |
18+
| `webpagedl.sh` | `../utilities/webpagedl.sh` | Utility |
19+
| `checkssh_conn.sh` | `../installation_scripts/checkssh_conn.sh` | Installation/Setup |
20+
21+
## Enhancements
22+
23+
All modernized scripts include:
24+
- Multi-OS support where applicable
25+
- Enhanced features and options
26+
- Multiple output formats (JSON, CSV, etc.)
27+
- Comprehensive error handling
28+
- Common library integration
29+
- Detailed documentation
30+
31+
## Timeline
32+
33+
These deprecated scripts will be removed in a future release. Please update your scripts to use the new locations in `utilities/` or `installation_scripts/`.

miscellaneous/checkssh_conn.sh

Lines changed: 0 additions & 51 deletions
This file was deleted.

miscellaneous/dirbackup.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

miscellaneous/etcbackup.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

miscellaneous/passgen.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)