You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -672,27 +682,216 @@ When configuring instances, AEMC automatically determines the type based on the
672
682
- URLs with `localhost` or `127.0.0.1` → treated as **local**
673
683
- Other URLs → treated as **remote**
674
684
685
+
## Instance ID Naming Convention
686
+
687
+
Each instance has a unique ID following the pattern: **`{location}_{role}[_{classifier}]`**
688
+
689
+
| Component | Required | Values | Description |
690
+
|-----------|----------|--------|-------------|
691
+
|**location**| Yes |`local`, `int`, `stg`, `prod`, or custom | Environment where instance runs |
692
+
|**role**| Yes |`author`, `publish`| AEM instance role |
693
+
|**classifier**| No |`1`, `2`, `preview`, or custom | Distinguishes multiple instances with same location and role |
694
+
695
+
> **⚠️ Important:** The `local` location prefix is **required** for local instance management commands (`aem instance local create`, `start`, `stop`, `launch`, `delete`, `backup`, etc.).
696
+
>
697
+
> Instances with any other location (e.g., `int_`, `stg_`, `prod_`) are treated as **remote** and will be **skipped** by local management commands, even if their `http_url` points to localhost.
698
+
699
+
### Example Instance IDs
700
+
701
+
| ID | Description |
702
+
|----|-------------|
703
+
|`local_author`| Local author instance (developer machine) |
704
+
|`local_publish`| Local publish instance (developer machine) |
sh aemw package deploy --file my-package.zip --instance-id local_author
791
+
792
+
# Deploy multiple packages
793
+
sh aemw package deploy --file pkg1.zip --file pkg2.zip
794
+
795
+
# Deploy from URL
796
+
sh aemw package deploy --url https://example.com/my-package.zip
797
+
```
798
+
799
+
## OSGi Configuration
800
+
801
+
```shell
802
+
# List all bundles
803
+
sh aemw osgi bundle list
804
+
805
+
# Check specific bundle status
806
+
sh aemw osgi bundle read --symbolic-name com.example.core
807
+
808
+
# Set OSGi configuration
809
+
sh aemw osgi config save --pid com.example.MyService --input-string "enabled: true"
810
+
```
811
+
812
+
## Repository Operations
813
+
814
+
```shell
815
+
# Read node properties
816
+
sh aemw repo node read --path /content/my-site
817
+
818
+
# Copy content between instances
819
+
sh aemw content copy --path /content/my-site --instance-target-id local_publish
820
+
```
821
+
822
+
## Instance Backups
823
+
824
+
Backups allow you to save and restore the complete state of local AEM instances.
825
+
826
+
**Format:** Backups use [Zstandard (zstd)](https://github.com/facebook/zstd) compression developed by Facebook - optimized for excellent compression ratio with very fast decompression speed. Files are stored in `aem/home/var/backup` directory with `.aemb.tar.zst` extension.
827
+
828
+
**Automatic instance handling:** All backup commands automatically stop running instances before operation and restart them afterwards. No manual stop/start is required.
829
+
830
+
### Basic Commands
831
+
832
+
```shell
833
+
# List all available backups
834
+
sh aemw instance local backup list
835
+
836
+
# Create backup of a single instance
837
+
sh aemw instance local backup make --instance-id local_author
838
+
839
+
# Create backup with custom file path
840
+
sh aemw instance local backup make --instance-id local_author --file my-backup.aemb.tar.zst
841
+
842
+
# Restore instance from backup (instance must not exist)
843
+
sh aemw instance local backup use --instance-id local_author
844
+
845
+
# Restore from specific backup file
846
+
sh aemw instance local backup use --instance-id local_author --file my-backup.aemb.tar.zst
847
+
848
+
# Restore and delete existing instance first
849
+
sh aemw instance local backup use --instance-id local_author --delete-created
850
+
```
851
+
852
+
### Backup & Restore Cycle
853
+
854
+
Backups enable safe experimentation - break your instance, restore in 10-15 minutes:
0 commit comments