File or directory backup: Back up critical data
When the app catalog, profiles, and business files need to be kept together, follow the steps below.
Steps to follow
- Confirm and modify the directory and file scope to be backed up this time in the bak.toml under the default configuration directory, and confirm that the backup type is application data:
` \toml [public] bak_type = “app_data” bak_location_type = “local” # or local_and_remote
Specify data_dir and exclusion rules in `prj.toml’. See bak.toml and prj.toml for complete fields.
- Exclude temporary directories, cache directories, build products, and regeneratable intermediate files from this backup.
- Data that already has a separate backup link will not be repeated in this backup.
- Perform a check first:
peppykeep backup run --bak-type app-data --config-home /path/to/conf --no-upload
- Perform a formal backup after checking that everything is correct:
peppykeep backup run --apply --bak-type app-data --config-home /path/to/conf --no-upload
- When you need to continue saving to the object store, go to Save to object store after local backup.
results verification
- ‘BakType’ is’ AppData `in the pre-check or execute output.
- The directories and files that need to be retained are already in the backup.
- Unwanted directories and files are not brought in together.
- The backup file required for the restore has been generated locally.
Order Details: